mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-27 15:44:12 +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);
|
WaitForSingleObject(hsema, INFINITE);
|
||||||
CloseHandle(hsema);
|
CloseHandle(hsema);
|
||||||
|
#ifndef WINXP
|
||||||
if (AddClipboardFormatListener(hwnd))
|
if (AddClipboardFormatListener(hwnd))
|
||||||
return hwnd;
|
return hwnd;
|
||||||
else
|
else
|
||||||
return NULL;
|
return NULL;
|
||||||
|
#else
|
||||||
|
return hwnd;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
DECLARE_API void clipboard_callback_stop(HWND hwnd)
|
DECLARE_API void clipboard_callback_stop(HWND hwnd)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user