Decompile fn_18152 (RegistryKey::Query)
Batch #13394 by spider: 1 byte-identical, 0 confirmed by peer review. - fn_18152 RegistryKey::Query: byte-identical Merged automatically: every function is byte-identical to the original.
This commit is contained in:
parent
b419489b83
commit
9efb55d6a4
1 changed files with 4 additions and 1 deletions
|
|
@ -17,7 +17,10 @@ bool RegistryKey::Open(HKEY parent, const char* subKey) {
|
|||
// FUNCTION: fn_18152
|
||||
bool RegistryKey::Query(const char* name, DWORD expectedType, BYTE* data, DWORD size) {
|
||||
DWORD type;
|
||||
return this->handle != nullptr && RegQueryValueExA(this->handle, name, nullptr, &type, data, &size) == ERROR_SUCCESS && type == expectedType;
|
||||
if (this->handle == nullptr || RegQueryValueExA(this->handle, name, nullptr, &type, data, &size) != ERROR_SUCCESS) {
|
||||
return false;
|
||||
}
|
||||
return type == expectedType;
|
||||
}
|
||||
|
||||
// OFFSET: 0x00AED0C0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue