From 422a10a571f98b38584f15980159185fc62b7b32 Mon Sep 17 00:00:00 2001 From: Patrik Stridvall Date: Sat, 26 Feb 2000 13:15:51 +0000 Subject: [PATCH] Fixed some debug message crashes. --- files/dos_fs.c | 4 ++-- win32/init.c | 11 ++++++----- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/files/dos_fs.c b/files/dos_fs.c index 792663a0a9a..da174a7b4bc 100644 --- a/files/dos_fs.c +++ b/files/dos_fs.c @@ -904,7 +904,7 @@ DWORD WINAPI GetShortPathNameA( LPCSTR longpath, LPSTR shortpath, int tmplen, drive; UINT flags; - TRACE("%s\n", longpath); + TRACE("%s\n", debugstr_a(longpath)); if (!longpath) { SetLastError(ERROR_INVALID_PARAMETER); @@ -964,7 +964,7 @@ DWORD WINAPI GetShortPathNameA( LPCSTR longpath, LPSTR shortpath, } lstrcpynA ( shortpath, tmpshortpath, shortlen ); - TRACE("returning %s\n", shortpath ); + TRACE("returning %s\n", debugstr_a(shortpath) ); tmplen = lstrlenA ( tmpshortpath ); HeapFree ( GetProcessHeap(), 0, tmpshortpath ); diff --git a/win32/init.c b/win32/init.c index 25dc05e1fd6..1b14e782e85 100644 --- a/win32/init.c +++ b/win32/init.c @@ -32,11 +32,12 @@ VOID WINAPI GetStartupInfoA(LPSTARTUPINFOA lpStartupInfo) "\tlpReserverd: %s, lpDesktop: %s, lpTitle: %s\n" "\tdwX: %ld, dwY: %ld, dwXSize: %ld, dwYSize: %ld\n" "\tdwFlags: %lx, wShowWindow: %x\n", lpStartupInfo->cb, - lpStartupInfo->lpReserved, lpStartupInfo->lpDesktop, - lpStartupInfo->lpTitle, lpStartupInfo->dwX, - lpStartupInfo->dwY, lpStartupInfo->dwXSize, - lpStartupInfo->dwYSize, lpStartupInfo->dwFlags, - lpStartupInfo->wShowWindow ); + debugstr_a(lpStartupInfo->lpReserved), + debugstr_a(lpStartupInfo->lpDesktop), + debugstr_a(lpStartupInfo->lpTitle), + lpStartupInfo->dwX, lpStartupInfo->dwY, + lpStartupInfo->dwXSize, lpStartupInfo->dwYSize, + lpStartupInfo->dwFlags, lpStartupInfo->wShowWindow ); } /***********************************************************************