win-capture: Fix format string warning

master
craftwar 2020-03-06 19:52:02 +08:00
parent 72bb592673
commit 3821a0344e
2 changed files with 2 additions and 2 deletions

View File

@ -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 =

View File

@ -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,