fixed the order of the parameters of RtlIsValidIndexHandle
Modified: trunk/reactos/include/ndk/rtlfuncs.h
Modified: trunk/reactos/lib/ntdll/rtl/handle.c
Modified: trunk/reactos/lib/ntdll/rtl/libsupp.c
_____
Modified: trunk/reactos/include/ndk/rtlfuncs.h
--- trunk/reactos/include/ndk/rtlfuncs.h 2005-08-07 11:44:41 UTC
(rev 17158)
+++ trunk/reactos/include/ndk/rtlfuncs.h 2005-08-07 11:47:45 UTC
(rev 17159)
@@ -1514,8 +1514,8 @@
STDCALL
RtlIsValidIndexHandle(
IN PRTL_HANDLE_TABLE HandleTable,
- IN OUT PRTL_HANDLE_TABLE_ENTRY *Handle,
- IN ULONG Index
+ IN ULONG Index,
+ OUT PRTL_HANDLE_TABLE_ENTRY *Handle
);
/*
_____
Modified: trunk/reactos/lib/ntdll/rtl/handle.c
--- trunk/reactos/lib/ntdll/rtl/handle.c 2005-08-07 11:44:41 UTC
(rev 17158)
+++ trunk/reactos/lib/ntdll/rtl/handle.c 2005-08-07 11:47:45 UTC
(rev 17159)
@@ -161,13 +161,13 @@
* @implemented
*/
BOOLEAN STDCALL
-RtlIsValidIndexHandle(PRTL_HANDLE_TABLE HandleTable,
- PRTL_HANDLE_TABLE_ENTRY *Handle,
- ULONG Index)
+RtlIsValidIndexHandle(IN PRTL_HANDLE_TABLE HandleTable,
+ IN ULONG Index,
+ OUT PRTL_HANDLE_TABLE_ENTRY *Handle)
{
PRTL_HANDLE_TABLE_ENTRY InternalHandle;
- DPRINT("RtlIsValidIndexHandle(HandleTable %p Handle %p Index %x)\n",
HandleTable, Handle, Index);
+ DPRINT("RtlIsValidIndexHandle(HandleTable %p Index %x Handle %p)\n",
HandleTable, Index, Handle);
if (HandleTable == NULL)
return FALSE;
_____
Modified: trunk/reactos/lib/ntdll/rtl/libsupp.c
--- trunk/reactos/lib/ntdll/rtl/libsupp.c 2005-08-07 11:44:41 UTC
(rev 17158)
+++ trunk/reactos/lib/ntdll/rtl/libsupp.c 2005-08-07 11:47:45 UTC
(rev 17159)
@@ -148,8 +148,8 @@
PRTL_HANDLE_TABLE_ENTRY RtlHandleEntry;
if (RtlIsValidIndexHandle(&AtomTable->RtlHandleTable,
- &RtlHandleEntry,
- (ULONG)Entry->HandleIndex))
+ (ULONG)Entry->HandleIndex,
+ &RtlHandleEntry))
{
RtlFreeHandle(&AtomTable->RtlHandleTable,
RtlHandleEntry);
@@ -198,8 +198,8 @@
PRTL_HANDLE_TABLE_ENTRY RtlHandle;
if (RtlIsValidIndexHandle(&AtomTable->RtlHandleTable,
- &RtlHandle,
- Index))
+ Index,
+ &RtlHandle))
{
PRTL_ATOM_HANDLE AtomHandle = (PRTL_ATOM_HANDLE)RtlHandle;
Show replies by date