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

Alexandre Julliard julliard at wine.codeweavers.com
Fri Jan 5 13:36:13 CST 2007


Module: wine
Branch: master
Commit: bf52744657be681e5ae435ef7f7b10d6176b080d
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=bf52744657be681e5ae435ef7f7b10d6176b080d

Author: Francois Gouget <fgouget at free.fr>
Date:   Fri Jan  5 12:55:05 2007 +0100

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

---

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




More information about the wine-cvs mailing list