Rob Shearman : kernel32: Fix use of uninitialised nameW and typeW in find_resourceA.
Alexandre Julliard
julliard at winehq.org
Fri Feb 29 06:17:03 CST 2008
Module: wine
Branch: master
Commit: 45ba200f192872df67fe9dcef8782e0a64649ca3
URL: http://source.winehq.org/git/wine.git/?a=commit;h=45ba200f192872df67fe9dcef8782e0a64649ca3
Author: Rob Shearman <rob at codeweavers.com>
Date: Fri Feb 29 11:11:52 2008 +0000
kernel32: Fix use of uninitialised nameW and typeW in find_resourceA.
---
dlls/kernel32/resource.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/dlls/kernel32/resource.c b/dlls/kernel32/resource.c
index 2fbf263..f49ea24 100644
--- a/dlls/kernel32/resource.c
+++ b/dlls/kernel32/resource.c
@@ -132,6 +132,9 @@ static HRSRC find_resourceA( HMODULE hModule, LPCSTR type, LPCSTR name, WORD lan
LDR_RESOURCE_INFO info;
const IMAGE_RESOURCE_DATA_ENTRY *entry = NULL;
+ nameW.Buffer = NULL;
+ typeW.Buffer = NULL;
+
__TRY
{
if ((status = get_res_nameA( name, &nameW )) != STATUS_SUCCESS) goto done;
More information about the wine-cvs
mailing list