mirror of
https://github.com/debauchee/barrier.git
synced 2026-05-07 14:14:10 +08:00
win32 changes. changed names of binaries. added support for
running as (and installing/installing) a service. added support for multiple desktops (NT only, 95 doesn't support multiple desktops).
This commit is contained in:
@@ -614,17 +614,9 @@ unsigned int __stdcall CThreadRep::threadFunc(void* arg)
|
||||
{
|
||||
CThreadRep* rep = (CThreadRep*)arg;
|
||||
|
||||
// initialize OLE
|
||||
const HRESULT hr = OleInitialize(NULL);
|
||||
|
||||
// run thread
|
||||
rep->doThreadFunc();
|
||||
|
||||
// close OLE
|
||||
if (!FAILED(hr)) {
|
||||
OleUninitialize();
|
||||
}
|
||||
|
||||
// signal termination
|
||||
SetEvent(rep->m_exit);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user