mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-28 08:04: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);
|
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