win-capture: Fix format string warning
parent
72bb592673
commit
3821a0344e
|
@ -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 =
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue