Author: weiden
Date: Tue Jan 16 21:55:06 2007
New Revision: 25489
URL:
http://svn.reactos.org/svn/reactos?rev=25489&view=rev
Log:
Fix difference in signedness warnings
Modified:
trunk/reactos/ntoskrnl/ps/notify.c
Modified: trunk/reactos/ntoskrnl/ps/notify.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ps/notify.c?rev=2…
==============================================================================
--- trunk/reactos/ntoskrnl/ps/notify.c (original)
+++ trunk/reactos/ntoskrnl/ps/notify.c Tue Jan 16 21:55:06 2007
@@ -60,7 +60,7 @@
CallBack))
{
/* Decrement the number of routines */
- InterlockedDecrement(&PspProcessNotifyRoutineCount);
+ InterlockedDecrement((PLONG)&PspProcessNotifyRoutineCount);
/* Dereference the block */
ExDereferenceCallBackBlock(&PspProcessNotifyRoutine[i],
@@ -97,7 +97,7 @@
NULL))
{
/* Found and inserted into an empty slot, return */
- InterlockedIncrement(&PspProcessNotifyRoutineCount);
+ InterlockedIncrement((PLONG)&PspProcessNotifyRoutineCount);
return STATUS_SUCCESS;
}
}
@@ -149,7 +149,7 @@
CallBack))
{
/* We removed it, now dereference the block */
- InterlockedDecrement(&PspLoadImageNotifyRoutineCount);
+ InterlockedDecrement((PLONG)&PspLoadImageNotifyRoutineCount);
ExDereferenceCallBackBlock(&PspLoadImageNotifyRoutine[i],
CallBack);
@@ -195,7 +195,7 @@
NULL))
{
/* Return success */
- InterlockedIncrement(&PspLoadImageNotifyRoutineCount);
+ InterlockedIncrement((PLONG)&PspLoadImageNotifyRoutineCount);
PsImageNotifyEnabled = TRUE;
return STATUS_SUCCESS;
}
@@ -233,7 +233,7 @@
CallBack))
{
/* We removed it, now dereference the block */
- InterlockedDecrement(&PspThreadNotifyRoutineCount);
+ InterlockedDecrement((PLONG)&PspThreadNotifyRoutineCount);
ExDereferenceCallBackBlock(&PspThreadNotifyRoutine[i],
CallBack);
@@ -279,7 +279,7 @@
NULL))
{
/* Return success */
- InterlockedIncrement(&PspThreadNotifyRoutineCount);
+ InterlockedIncrement((PLONG)&PspThreadNotifyRoutineCount);
return STATUS_SUCCESS;
}
}