Michael Stefaniuc : shell32: Don't pass an unitialized size to RegGetValue( ).
Alexandre Julliard
julliard at winehq.org
Fri Jul 1 14:11:01 CDT 2011
Module: wine
Branch: master
Commit: c2c0bec0e3c70ea9435a7b84e394980d849e8d70
URL: http://source.winehq.org/git/wine.git/?a=commit;h=c2c0bec0e3c70ea9435a7b84e394980d849e8d70
Author: Michael Stefaniuc <mstefani at redhat.de>
Date: Wed Jun 29 21:55:57 2011 +0200
shell32: Don't pass an unitialized size to RegGetValue().
---
dlls/shell32/shellpath.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/shell32/shellpath.c b/dlls/shell32/shellpath.c
index ef1a0de..66c376e 100644
--- a/dlls/shell32/shellpath.c
+++ b/dlls/shell32/shellpath.c
@@ -3315,7 +3315,8 @@ static HRESULT WINAPI knownfolder_GetCategory(
{
struct knownfolder *knownfolder = impl_from_IKnownFolder(iface);
HRESULT hr = S_OK;
- DWORD dwSize, dwType;
+ DWORD dwSize = sizeof(DWORD);
+ DWORD dwType;
TRACE("%p, %p\n", knownfolder, pCategory);
More information about the wine-cvs
mailing list