kernel32: Fix use of uninitialised nameW and typeW in find_resourceA.

This commit is contained in:
Rob Shearman 2008-02-29 11:11:52 +00:00 committed by Alexandre Julliard
parent cebc73e373
commit 45ba200f19
1 changed files with 3 additions and 0 deletions

View File

@ -132,6 +132,9 @@ static HRSRC find_resourceA( HMODULE hModule, LPCSTR type, LPCSTR name, WORD lan
LDR_RESOURCE_INFO info; LDR_RESOURCE_INFO info;
const IMAGE_RESOURCE_DATA_ENTRY *entry = NULL; const IMAGE_RESOURCE_DATA_ENTRY *entry = NULL;
nameW.Buffer = NULL;
typeW.Buffer = NULL;
__TRY __TRY
{ {
if ((status = get_res_nameA( name, &nameW )) != STATUS_SUCCESS) goto done; if ((status = get_res_nameA( name, &nameW )) != STATUS_SUCCESS) goto done;