mirror of
https://github.com/valitydev/osquery-1.git
synced 2024-11-08 02:18:53 +00:00
Fixed type bug with DWORD registry values (#2383)
This commit is contained in:
parent
fe7b8d98f9
commit
f1d6686735
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user