Author: cwittich
Date: Sun Jan 19 08:52:21 2014
New Revision: 61684
URL:
http://svn.reactos.org/svn/reactos?rev=61684&view=rev
Log:
[taskmgr]
formatting fixes
Modified:
trunk/reactos/base/applications/taskmgr/about.c
trunk/reactos/base/applications/taskmgr/proclist.c
trunk/reactos/base/applications/taskmgr/procpage.c
Modified: trunk/reactos/base/applications/taskmgr/about.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/taskmgr/…
==============================================================================
--- trunk/reactos/base/applications/taskmgr/about.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/taskmgr/about.c [iso-8859-1] Sun Jan 19 08:52:21 2014
@@ -24,10 +24,10 @@
void OnAbout(void)
{
- TCHAR szTaskmgr[128];
+ WCHAR szTaskmgr[128];
HICON taskmgrIcon = LoadIcon(hInst, MAKEINTRESOURCE(IDI_TASKMANAGER));
- LoadString(hInst, IDS_APP_TITLE, szTaskmgr, sizeof(szTaskmgr)/sizeof(TCHAR));
- ShellAbout(hMainWnd, szTaskmgr, 0, taskmgrIcon);
+ LoadStringW(hInst, IDS_APP_TITLE, szTaskmgr, sizeof(szTaskmgr)/sizeof(WCHAR));
+ ShellAboutW(hMainWnd, szTaskmgr, 0, taskmgrIcon);
DeleteObject(taskmgrIcon);
}
Modified: trunk/reactos/base/applications/taskmgr/proclist.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/taskmgr/…
==============================================================================
--- trunk/reactos/base/applications/taskmgr/proclist.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/taskmgr/proclist.c [iso-8859-1] Sun Jan 19 08:52:21
2014
@@ -76,7 +76,7 @@
rcItem.left = LVIR_BOUNDS;
SendMessageW(hWnd, LVM_GETITEMRECT, ListView_GetItemCount(hWnd) - 1,
(LPARAM)&rcItem);
rcClip.bottom = rcItem.bottom;
- rcClip.right = rcItem.right;
+ rcClip.right = rcItem.right;
rcItem.left = LVIR_ICON;
SendMessageW(hWnd, LVM_GETITEMRECT, 0, (LPARAM)&rcItem);
rcClip.left = rcItem.right;
Modified: trunk/reactos/base/applications/taskmgr/procpage.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/taskmgr/…
==============================================================================
--- trunk/reactos/base/applications/taskmgr/procpage.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/taskmgr/procpage.c [iso-8859-1] Sun Jan 19 08:52:21
2014
@@ -470,25 +470,25 @@
BOOL ProcessRunning(ULONG ProcessId)
{
- HANDLE hProcess;
- DWORD exitCode;
-
- if (ProcessId == 0) {
- return TRUE;
- }
-
- hProcess = OpenProcess(PROCESS_ALL_ACCESS, FALSE, ProcessId);
- if (hProcess == NULL) {
- return FALSE;
- }
-
- if (GetExitCodeProcess(hProcess, &exitCode)) {
- CloseHandle(hProcess);
- return (exitCode == STILL_ACTIVE);
- }
-
- CloseHandle(hProcess);
- return FALSE;
+ HANDLE hProcess;
+ DWORD exitCode;
+
+ if (ProcessId == 0) {
+ return TRUE;
+ }
+
+ hProcess = OpenProcess(PROCESS_ALL_ACCESS, FALSE, ProcessId);
+ if (hProcess == NULL) {
+ return FALSE;
+ }
+
+ if (GetExitCodeProcess(hProcess, &exitCode)) {
+ CloseHandle(hProcess);
+ return (exitCode == STILL_ACTIVE);
+ }
+
+ CloseHandle(hProcess);
+ return FALSE;
}
void AddProcess(ULONG Index)