shdocvw: Plug memory leak introduced in 1.0-rc1 (Smatch).

This commit is contained in:
Michael Stefaniuc 2008-05-10 01:30:05 +02:00 committed by Alexandre Julliard
parent c83a63d4b6
commit 38cae0b2c4
1 changed files with 5 additions and 2 deletions

View File

@ -293,6 +293,7 @@ static BOOL check_native_ie(void)
{
static const WCHAR cszPath[] = {'b','r','o','w','s','e','u','i','.','d','l','l',0};
DWORD handle,size;
BOOL ret = TRUE;
size = GetFileVersionInfoSizeW(cszPath,&handle);
if (size)
@ -308,10 +309,12 @@ static BOOL check_native_ie(void)
if (VerQueryValueW(buf, cszFD, (LPVOID*)&lpFileDescription, &dwBytes) &&
strstrW(lpFileDescription,cszWine))
return FALSE;
ret = FALSE;
HeapFree(GetProcessHeap(), 0, buf);
}
return TRUE;
return ret;
}
DWORD register_iexplore(BOOL doregister)