Paul Vriens : ntdll: Fix length parameter for NtQueryValueKey (Coccinelle).
Alexandre Julliard
julliard at winehq.org
Fri Jan 8 10:28:57 CST 2010
Module: wine
Branch: master
Commit: 2e03013fc0873524a7f8c0c78d455b7f3bac8966
URL: http://source.winehq.org/git/wine.git/?a=commit;h=2e03013fc0873524a7f8c0c78d455b7f3bac8966
Author: Paul Vriens <Paul.Vriens.Wine at gmail.com>
Date: Fri Jan 8 09:27:21 2010 +0100
ntdll: Fix length parameter for NtQueryValueKey (Coccinelle).
---
dlls/ntdll/relay.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/ntdll/relay.c b/dlls/ntdll/relay.c
index 1981e51..7fd3c35 100644
--- a/dlls/ntdll/relay.c
+++ b/dlls/ntdll/relay.c
@@ -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 );
More information about the wine-cvs
mailing list