[taskmgr]
authorChristoph von Wittich <christoph_vw@reactos.org>
Sun, 19 Jan 2014 08:52:21 +0000 (08:52 +0000)
committerChristoph von Wittich <christoph_vw@reactos.org>
Sun, 19 Jan 2014 08:52:21 +0000 (08:52 +0000)
formatting fixes

svn path=/trunk/; revision=61684

reactos/base/applications/taskmgr/about.c
reactos/base/applications/taskmgr/proclist.c
reactos/base/applications/taskmgr/procpage.c

index ec8e5c1..66510ac 100644 (file)
 
 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);
 }
index b8754be..15f0c13 100644 (file)
@@ -76,7 +76,7 @@ ProcessListWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
         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;
index fe85b6c..007e678 100644 (file)
@@ -470,25 +470,25 @@ void UpdateProcesses()
 
 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)