graphics-hook: Account for sizeof(wchar_t) in len
This commit is contained in:
parent
6539bacc4e
commit
d2e9e47bb4
1 changed files with 2 additions and 2 deletions
|
|
@ -235,8 +235,8 @@ static inline bool init_hook(HANDLE thread_handle)
|
|||
{
|
||||
wait_for_dll_main_finish(thread_handle);
|
||||
|
||||
_snwprintf(keepalive_name, sizeof(keepalive_name), L"%s%lu",
|
||||
WINDOW_HOOK_KEEPALIVE, GetCurrentProcessId());
|
||||
_snwprintf(keepalive_name, sizeof(keepalive_name) / sizeof(wchar_t),
|
||||
L"%s%lu", WINDOW_HOOK_KEEPALIVE, GetCurrentProcessId());
|
||||
|
||||
init_pipe();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue