winnt.h: Fix MSVC variants of InterlockedIncrement16 and InterlockedDecrement16.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2021-01-22 15:11:05 +01:00 committed by Alexandre Julliard
parent bc29521db5
commit 1495ccd152
1 changed files with 2 additions and 2 deletions

View File

@ -6966,7 +6966,7 @@ static FORCEINLINE LONG WINAPI InterlockedIncrement( LONG volatile *dest )
static FORCEINLINE short WINAPI InterlockedIncrement16( short volatile *dest )
{
return _InterlockedIncrement16( (long volatile *)dest );
return _InterlockedIncrement16( dest );
}
static FORCEINLINE LONG WINAPI InterlockedDecrement( LONG volatile *dest )
@ -6976,7 +6976,7 @@ static FORCEINLINE LONG WINAPI InterlockedDecrement( LONG volatile *dest )
static FORCEINLINE short WINAPI InterlockedDecrement16( short volatile *dest )
{
return _InterlockedDecrement16( (long volatile *)dest );
return _InterlockedDecrement16( dest );
}
static FORCEINLINE LONG WINAPI InterlockedOr( LONG volatile *dest, LONG val )