Commit 2e03013f authored by Paul Vriens's avatar Paul Vriens Committed by Alexandre Julliard

ntdll: Fix length parameter for NtQueryValueKey (Coccinelle).

parent e38e54e3
......@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment