fixed success check in RtlpCreateAtomHandle, ExCreateHandle returns
EX_INVALID_HANDLE in case of failure. Thx to Filip
Modified: trunk/reactos/ntoskrnl/rtl/libsupp.c
_____
Modified: trunk/reactos/ntoskrnl/rtl/libsupp.c
--- trunk/reactos/ntoskrnl/rtl/libsupp.c 2005-07-31 12:11:56 UTC
(rev 16920)
+++ trunk/reactos/ntoskrnl/rtl/libsupp.c 2005-07-31 18:52:36 UTC
(rev 16921)
@@ -260,7 +260,7 @@
HandleIndex = ExCreateHandle(AtomTable->ExHandleTable,
&ExEntry);
- if (HandleIndex != 0)
+ if (HandleIndex != EX_INVALID_HANDLE)
{
/* FIXME - Handle Indexes >= 0xC000 ?! */
if (HandleIndex < 0xC000)
Show replies by date