mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 10:41:12 +00:00
Check for NULL keyvalue in RegEnumKeyExA/W.
This commit is contained in:
parent
ebed1b8745
commit
0bb6fdda90
1 changed files with 4 additions and 0 deletions
|
@ -297,6 +297,8 @@ DWORD WINAPI RegEnumKeyExW( HKEY hkey, DWORD index, LPWSTR name, LPDWORD name_le
|
|||
|
||||
if (reserved) return ERROR_INVALID_PARAMETER;
|
||||
|
||||
if (!hkey) return ERROR_INVALID_HANDLE;
|
||||
|
||||
status = NtEnumerateKey( hkey, index, KeyNodeInformation,
|
||||
buffer, sizeof(buffer), &total_size );
|
||||
|
||||
|
@ -358,6 +360,8 @@ DWORD WINAPI RegEnumKeyExA( HKEY hkey, DWORD index, LPSTR name, LPDWORD name_len
|
|||
|
||||
if (reserved) return ERROR_INVALID_PARAMETER;
|
||||
|
||||
if (!hkey) return ERROR_INVALID_HANDLE;
|
||||
|
||||
status = NtEnumerateKey( hkey, index, KeyNodeInformation,
|
||||
buffer, sizeof(buffer), &total_size );
|
||||
|
||||
|
|
Loading…
Reference in a new issue