From 07b6939bdf4d79a4e9167e4743fd5f786c2c81a3 Mon Sep 17 00:00:00 2001 From: Juergen Schmied Date: Tue, 1 Dec 1998 08:25:38 +0000 Subject: [PATCH] VerQueryValue, bugfix: we cant convert binary data with HEAP_strdupWtoA (\VarFileInfo\Translation). --- misc/ver.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/misc/ver.c b/misc/ver.c index f7c1035ed43..14296ac36be 100644 --- a/misc/ver.c +++ b/misc/ver.c @@ -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); + + /* This is a leak. */ + b = HEAP_strdupWtoA(GetProcessHeap(),0,(WCHAR*)b); } else TRACE(ver,"->%p\n",b); - /* This is a leak. */ - b = HEAP_strdupWtoA(GetProcessHeap(),0,(WCHAR*)b); } else { struct dbA *db; b=_find_dataA(block,s,*(WORD*)block);