VerQueryValue, bugfix: we cant convert binary data with

HEAP_strdupWtoA (\VarFileInfo\Translation).
This commit is contained in:
Juergen Schmied 1998-12-01 08:25:38 +00:00 committed by Alexandre Julliard
parent 54b33cfbeb
commit 07b6939bdf
1 changed files with 3 additions and 2 deletions

View File

@ -1383,10 +1383,11 @@ DWORD WINAPI VerQueryValue32A(LPVOID vblock,LPCSTR subblock,
xs = HEAP_strdupWtoA(GetProcessHeap(),0,(WCHAR*)b);
TRACE(ver,"->%s\n",xs);
HeapFree(GetProcessHeap(),0,xs);
} else
TRACE(ver,"->%p\n",b);
/* This is a leak. */
b = HEAP_strdupWtoA(GetProcessHeap(),0,(WCHAR*)b);
} else
TRACE(ver,"->%p\n",b);
} else {
struct dbA *db;
b=_find_dataA(block,s,*(WORD*)block);