* Sync up to trunk head (r65353).
[reactos.git] / drivers / storage / classpnp / debug.c
index bea6bfb..c354d21 100644 (file)
@@ -21,9 +21,7 @@ Revision History:
 
 --*/
 
-
 #include "classp.h"
-#include "debug.h"
 
 #if DBG
 
@@ -63,7 +61,9 @@ Revision History:
         #define CLASS_GLOBAL_BUFFERED_DEBUG_PRINT_BUFFERS 512
     #endif   // CLASS_GLOBAL_BUFFERED_DEBUG_PRINT_BUFFERS
 
-    #pragma data_seg("NONPAGE")
+    #ifdef ALLOC_DATA_PRAGMA
+        #pragma data_seg("NONPAGE")
+    #endif
 
 
 
@@ -178,8 +178,8 @@ Revision History:
                 //
 
                 ULONG index;
-                PUCHAR buffer;
-                index = InterlockedIncrement(&ClasspnpGlobals.Index);
+                PSTR buffer;
+                index = InterlockedIncrement((PLONG)&ClasspnpGlobals.Index);
                 index %= ClasspnpGlobals.NumberOfBuffers;
                 index *= (ULONG)ClasspnpGlobals.EachBufferSize;