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

Francois Gouget fgouget at free.fr
Fri Jan 5 05:55:05 CST 2007


---
 programs/taskmgr/taskmgr.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/programs/taskmgr/taskmgr.c b/programs/taskmgr/taskmgr.c
index af4d54b..d59bd19 100644
--- a/programs/taskmgr/taskmgr.c
+++ b/programs/taskmgr/taskmgr.c
@@ -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);
-- 
1.4.4.2



More information about the wine-patches mailing list