Re: winex11.drv: Handle clipboard on an auxiliary thread for windowless apps (try 3)
9 Jul
2009
9 Jul
'09
1:14 a.m.
"Yuri Khan" <yurivkhan(a)gmail.com> wrote:
+void selection_acquire(void)
Should be 'static'.
+DWORD WINAPI selection_thread_proc(LPVOID lphwnd)
Should be 'static'. What's the purpose of such a parameter name? 'dummy', 'unused' or just 'param' would be better IMO.
+{ + HANDLE handles[1]; + + selection_acquire(); + + while (selectionAcquired) + { + MsgWaitForMultipleObjectsEx(0, handles, INFINITE, QS_SENDMESSAGE, 0); + }
What's the purpose of 'handles'? 'handles' is not initialized, moreover the number of passed handles is 0. MsgWaitForMultipleObjectsEx() works just fine with '0, NULL' combination. -- Dmitry.
6090
Age (days ago)
6090
Last active (days ago)
0 comments
1 participants
participants (1)
-
Dmitry Timoshkov