- use inlined probing macros for basic types
[reactos.git] / reactos / ntoskrnl / rtl / capture.c
index b138d8b..3a7e041 100644 (file)
@@ -32,7 +32,7 @@ RtlCaptureUnicodeString(OUT PUNICODE_STRING Dest,
    * Copy the source string structure to kernel space.
    */
 
-  if(CurrentMode == UserMode)
+  if(CurrentMode != KernelMode)
   {
     RtlZeroMemory(&Src, sizeof(Src));