未验证 提交 52996158 编写于 作者: J Jim 提交者: GitHub

Merge pull request #2464 from craftwar/warning

win-capture: Fix format string warning
......@@ -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,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册