mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-26 23:24:13 +08:00
fix
This commit is contained in:
parent
600cb73d1b
commit
6f51724dba
@ -167,10 +167,14 @@ DECLARE_API HWND clipboard_callback(void (*callback)(const wchar_t *, bool))
|
||||
|
||||
WaitForSingleObject(hsema, INFINITE);
|
||||
CloseHandle(hsema);
|
||||
#ifndef WINXP
|
||||
if (AddClipboardFormatListener(hwnd))
|
||||
return hwnd;
|
||||
else
|
||||
return NULL;
|
||||
#else
|
||||
return hwnd;
|
||||
#endif
|
||||
}
|
||||
DECLARE_API void clipboard_callback_stop(HWND hwnd)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user