taskmgr: Print GetLastError() in decimal with '%u'.

This commit is contained in:
Francois Gouget 2007-01-05 12:55:05 +01:00 committed by Alexandre Julliard
parent f46cfe601c
commit bf52744657
1 changed files with 2 additions and 2 deletions

View File

@ -731,8 +731,8 @@ LPTSTR GetLastErrorText(LPTSTR lpszBuf, DWORD dwSize)
if (!dwRet || ( (long)dwSize < (long)dwRet+14)) {
lpszBuf[0] = TEXT('\0');
} else {
lpszTemp[lstrlen(lpszTemp)-2] = TEXT('\0'); /*remove cr and newline character */
_stprintf(lpszBuf, TEXT("%s (0x%x)"), lpszTemp, (int)GetLastError());
lpszTemp[lstrlen(lpszTemp)-2] = TEXT('\0'); /* remove cr and newline character */
_stprintf(lpszBuf, TEXT("%s (%u)"), lpszTemp, GetLastError());
}
if (lpszTemp) {
LocalFree((HLOCAL)lpszTemp);