mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 20:59:54 +00:00
ntdll: Fix length parameter for NtQueryValueKey (Coccinelle).
This commit is contained in:
parent
e38e54e3f4
commit
2e03013fc0
@ -147,7 +147,7 @@ static const WCHAR **load_list( HKEY hkey, const WCHAR *value )
|
||||
const WCHAR **list = NULL;
|
||||
|
||||
RtlInitUnicodeString( &name, value );
|
||||
status = NtQueryValueKey( hkey, &name, KeyValuePartialInformation, buffer, sizeof(buffer), &count );
|
||||
status = NtQueryValueKey( hkey, &name, KeyValuePartialInformation, buffer, sizeof(initial_buffer), &count );
|
||||
if (status == STATUS_BUFFER_OVERFLOW)
|
||||
{
|
||||
buffer = RtlAllocateHeap( GetProcessHeap(), 0, count );
|
||||
|
Loading…
Reference in New Issue
Block a user