[CLASSPNP]

- Do not disable compiler warnings
- Fix a ton of them

svn path=/trunk/; revision=60922
This commit is contained in:
Thomas Faber 2013-11-10 20:54:19 +00:00
parent 6e52c95041
commit 82703397cf
11 changed files with 266 additions and 350 deletions

View file

@ -63,7 +63,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 +180,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;