ntdll: Fix length parameter for NtQueryValueKey (Coccinelle).

This commit is contained in:
Paul Vriens 2010-01-08 09:27:21 +01:00 committed by Alexandre Julliard
parent e38e54e3f4
commit 2e03013fc0

View File

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