advapi32/service: Fix wrong key.
This commit is contained in:
parent
160b55cb2a
commit
169af787d2
|
@ -1880,7 +1880,7 @@ QueryServiceConfigW( SC_HANDLE hService,
|
|||
total += sizeof(WCHAR);
|
||||
|
||||
sz = 0;
|
||||
r = RegQueryValueExW( hKey, szStart, 0, &type, NULL, &sz );
|
||||
r = RegQueryValueExW( hKey, szObjectName, 0, &type, NULL, &sz );
|
||||
if( ( r == ERROR_SUCCESS ) && ( type == REG_SZ ) )
|
||||
total += sz;
|
||||
|
||||
|
|
Loading…
Reference in New Issue