Module: wine Branch: master Commit: c2c0bec0e3c70ea9435a7b84e394980d849e8d70 URL: http://source.winehq.org/git/wine.git/?a=commit;h=c2c0bec0e3c70ea9435a7b84e3...
Author: Michael Stefaniuc mstefani@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);