diff --git a/plugins/win-capture/game-capture.c b/plugins/win-capture/game-capture.c index 5530e56294888811ed0b37ebd6ce46e38ce0563b..48c16a959d82484e62abb847c2fd09c1fc1b5980 100644 --- a/plugins/win-capture/game-capture.c +++ b/plugins/win-capture/game-capture.c @@ -1252,7 +1252,7 @@ static inline enum capture_result init_capture_data(struct game_capture *gc) CloseHandle(gc->hook_data_map); wchar_t name[64]; - _snwprintf(name, 64, L"%s_%d_", SHMEM_TEXTURE, + _snwprintf(name, 64, L"%s_%u_", SHMEM_TEXTURE, (uint32_t)(uintptr_t)gc->window); gc->hook_data_map = diff --git a/plugins/win-capture/graphics-hook/graphics-hook.c b/plugins/win-capture/graphics-hook/graphics-hook.c index 2dc83a80c1ff36b5f9556157e49ecf9da0092f3a..ed498c8f4806e0b36181064c23ad225590e5ad52 100644 --- a/plugins/win-capture/graphics-hook/graphics-hook.c +++ b/plugins/win-capture/graphics-hook/graphics-hook.c @@ -505,7 +505,7 @@ static inline void unlock_shmem_tex(int id) static inline bool init_shared_info(size_t size, HWND window) { wchar_t name[64]; - _snwprintf(name, 64, L"%s_%d_%u", SHMEM_TEXTURE, + _snwprintf(name, 64, L"%s_%u_%u", SHMEM_TEXTURE, (uint32_t)(uintptr_t)window, ++shmem_id_counter); shmem_file_handle = CreateFileMappingW(INVALID_HANDLE_VALUE, NULL,