advapi32/service: Fix wrong key.

This commit is contained in:
Paul Vriens 2007-06-26 17:47:56 +02:00 committed by Alexandre Julliard
parent 160b55cb2a
commit 169af787d2
1 changed files with 1 additions and 1 deletions

View File

@ -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;