[PATCH vkd3d 3/3] vkd3d-shader: Use LONG type with InterlockedIncrement.

Alexandre Julliard julliard at winehq.org
Mon Jan 31 04:51:58 CST 2022


Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
 libs/vkd3d-shader/vkd3d_shader_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libs/vkd3d-shader/vkd3d_shader_main.c b/libs/vkd3d-shader/vkd3d_shader_main.c
index 47fe3d60d27f..ae0662b83cac 100644
--- a/libs/vkd3d-shader/vkd3d_shader_main.c
+++ b/libs/vkd3d-shader/vkd3d_shader_main.c
@@ -308,7 +308,7 @@ void set_u32(struct vkd3d_bytecode_buffer *buffer, size_t offset, uint32_t value
 static void vkd3d_shader_dump_blob(const char *path, const char *prefix,
         const char *suffix, const void *data, size_t size)
 {
-    static int shader_id = 0;
+    static LONG shader_id = 0;
     char filename[1024];
     unsigned int id;
     FILE *f;
-- 
2.34.1



More information about the wine-devel mailing list