gdihv: add a possibility to view all handles
[reactos.git] / rosapps / applications / devutils / gdihv / handlelist.c
index 9350832..a1a3a8f 100644 (file)
@@ -83,9 +83,10 @@ HandleList_Update(HWND hHandleListCtrl, HANDLE ProcessId)
        {\r
                pEntry = &GdiHandleTable[i];\r
                if ( ((ProcessId != (HANDLE)1) && ((pEntry->Type & GDI_HANDLE_BASETYPE_MASK) != 0)) ||\r
-                    ((ProcessId == (HANDLE)1) && ((pEntry->Type & GDI_HANDLE_BASETYPE_MASK) == 0)) )\r
+                    ((ProcessId == (HANDLE)1) && ((pEntry->Type & GDI_HANDLE_BASETYPE_MASK) == 0)) ||\r
+                     (ProcessId == (HANDLE)2) )\r
                {\r
-                       if (ProcessId == (HANDLE)1 ||\r
+                       if (ProcessId == (HANDLE)1 || ProcessId == (HANDLE)2 ||\r
                            ((LONG)ProcessId & 0xfffc) == ((ULONG)pEntry->ProcessId & 0xfffc))\r
                        {\r
                                handle = GDI_HANDLE_CREATE(i, pEntry->Type);\r