[RTL]
authorEric Kohl <eric.kohl@reactos.org>
Sat, 29 May 2010 21:15:48 +0000 (21:15 +0000)
committerEric Kohl <eric.kohl@reactos.org>
Sat, 29 May 2010 21:15:48 +0000 (21:15 +0000)
Implement RtlEncodeSystemPointer using the user shared data cookie.

svn path=/trunk/; revision=47429

reactos/lib/rtl/process.c

index 50e36eb..ae91e24 100644 (file)
@@ -340,14 +340,13 @@ RtlDecodePointer(IN PVOID Pointer)
 }
 
 /*
- * @unimplemented
+ * @implemented
  */
 PVOID
 NTAPI
 RtlEncodeSystemPointer(IN PVOID Pointer)
 {
-    UNIMPLEMENTED;
-    return NULL;
+    return (PVOID)((ULONG_PTR)Pointer ^ SharedUserData->Cookie);
 }
 
 /*