Eric Pouech : dbghelp: A few fixes related to Unicode translation.
Alexandre Julliard
julliard at wine.codeweavers.com
Thu Feb 22 05:56:48 CST 2007
Module: wine
Branch: master
Commit: c0fa60f547875bd67f8344093847bec8e7919953
URL: http://source.winehq.org/git/wine.git/?a=commit;h=c0fa60f547875bd67f8344093847bec8e7919953
Author: Eric Pouech <eric.pouech at wanadoo.fr>
Date: Wed Feb 21 21:56:01 2007 +0100
dbghelp: A few fixes related to Unicode translation.
---
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 31dfae7..d79e281 100644
--- a/dlls/dbghelp/dbghelp.c
+++ b/dlls/dbghelp/dbghelp.c
@@ -191,13 +191,12 @@ BOOL WINAPI SymGetSearchPathW(HANDLE hProcess, LPWSTR szSearchPath,
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-cvs
mailing list