This commit is contained in:
恍兮惚兮 2024-11-15 07:49:38 +08:00
parent 600cb73d1b
commit 6f51724dba

View File

@ -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)
{ {