libs/vkd3d: Fix InterlockedIncrement() and InterlockedDecrement() signatures.

This commit is contained in:
Józef Kucia
2016-10-10 11:22:50 +02:00
parent 5f3d5a1263
commit ed033b40d0
3 changed files with 13 additions and 13 deletions

View File

@ -84,8 +84,8 @@ void vkd3d_dbg_printf(enum vkd3d_dbg_level level, const char *function, const ch
static char *get_buffer(void)
{
static char buffers[64][VKD3D_DEBUG_BUFFER_SIZE];
static ULONG buffer_index;
ULONG current_index;
static LONG buffer_index;
LONG current_index;
current_index = InterlockedIncrement(&buffer_index) % ARRAY_SIZE(buffers);
return buffers[current_index];