[PATCH 18/26] [DbgHelp]: a few fixes related to Unicode translation
Eric Pouech
eric.pouech at wanadoo.fr
Wed Feb 21 14:56:01 CST 2007
A+
---
dlls/dbghelp/dbghelp.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/dlls/dbghelp/dbghelp.c b/dlls/dbghelp/dbghelp.c
index 4757f8d..da2490d 100644
--- a/dlls/dbghelp/dbghelp.c
+++ b/dlls/dbghelp/dbghelp.c
@@ -191,13 +191,12 @@ BOOL WINAPI SymGetSearchPathW(HANDLE hPr
BOOL WINAPI SymGetSearchPath(HANDLE hProcess, LPSTR szSearchPath,
DWORD SearchPathLength)
{
- WCHAR* buffer = HeapAlloc(GetProcessHeap(), 0, SearchPathLength);
+ WCHAR* buffer = HeapAlloc(GetProcessHeap(), 0, SearchPathLength * sizeof(WCHAR));
BOOL ret = FALSE;
if (buffer)
{
- ret = SymGetSearchPathW(hProcess, buffer,
- SearchPathLength * sizeof(WCHAR));
+ ret = SymGetSearchPathW(hProcess, buffer, SearchPathLength);
if (ret)
WideCharToMultiByte(CP_ACP, 0, buffer, SearchPathLength,
szSearchPath, SearchPathLength, NULL, NULL);
More information about the wine-patches
mailing list