Fixed some debug message crashes.

This commit is contained in:
Patrik Stridvall 2000-02-26 13:15:51 +00:00 committed by Alexandre Julliard
parent 5e6d062378
commit 422a10a571
2 changed files with 8 additions and 7 deletions

View File

@ -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 );

View File

@ -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 );
}
/***********************************************************************