Fixed type bug with DWORD registry values (#2383)

This commit is contained in:
Nick Anderson 2016-08-18 10:12:30 -07:00 committed by GitHub
parent fe7b8d98f9
commit f1d6686735

View File

@ -219,10 +219,10 @@ void queryKey(const std::string& hive,
r["data"] = data;
break;
case REG_DWORD:
r["data"] = std::to_string(*bpDataBuff);
r["data"] = std::to_string(*((int*)bpDataBuff));
break;
case REG_DWORD_BIG_ENDIAN:
r["data"] = std::to_string(_byteswap_ulong(*bpDataBuff));
r["data"] = std::to_string(_byteswap_ulong(*((int*)bpDataBuff)));
break;
case REG_EXPAND_SZ:
r["data"] = std::string((char*)bpDataBuff);