fixed success check in RtlpCreateAtomHandle, ExCreateHandle returns EX_INVALID_HANDLE...
authorThomas Bluemel <thomas@reactsoft.com>
Sun, 31 Jul 2005 18:52:36 +0000 (18:52 +0000)
committerThomas Bluemel <thomas@reactsoft.com>
Sun, 31 Jul 2005 18:52:36 +0000 (18:52 +0000)
svn path=/trunk/; revision=16921

reactos/ntoskrnl/rtl/libsupp.c

index 5998f7f..1f1c656 100644 (file)
@@ -260,7 +260,7 @@ RtlpCreateAtomHandle(PRTL_ATOM_TABLE AtomTable, PRTL_ATOM_TABLE_ENTRY Entry)
    
    HandleIndex = ExCreateHandle(AtomTable->ExHandleTable,
                                 &ExEntry);
-   if (HandleIndex != 0)
+   if (HandleIndex != EX_INVALID_HANDLE)
    {
       /* FIXME - Handle Indexes >= 0xC000 ?! */
       if (HandleIndex < 0xC000)