Changeset 2761 for trunk/synergy/lib/platform/CPMScreen.cpp
- Timestamp:
- Aug 13, 2006, 1:41:05 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/synergy/lib/platform/CPMScreen.cpp
r2755 r2761 70 70 { 71 71 assert(s_screen == NULL); 72 73 72 s_screen = this; 73 74 // create the event queue buffer first so we know there is a message queue. 75 CPMEventQueueBuffer *eventQueue = new CPMEventQueueBuffer(); 74 76 75 77 // query curren thread bits. 76 78 m_threadID = _gettid(); 77 79 m_hab = WinQueryAnchorBlock(HWND_DESKTOP); 80 //if (m_hab == NULLHANDLE) { 81 // m_hab = WinInitialize(0); 82 //} 78 83 m_hmq = WinQueueFromID(m_hab, getpid(), _gettid()); 84 //if (m_hab != NULLHANDLE && m_hmq == NULLHANDLE) { 85 // m_hmq = WinCreateMsgQueue(m_hab, 0); 86 //} 79 87 if (m_hab == NULLHANDLE || m_hmq == NULLHANDLE) { 80 LOG((CLOG_CRIT "couldn't get the hab/hmq of the current thread!\n")); 88 LOG((CLOG_CRIT "couldn't get the hab(%ld)/hmq(%ld) of the current thread! %d\n", m_hab, m_hmq)); 89 delete eventQueue; 90 s_screen = NULL; 81 91 throw XScreenOpenFailure(); 82 92 } … … 97 107 destroyWindow(m_window); 98 108 closeHookLibrary(m_hmodHook); 109 delete eventQueue; 99 110 s_screen = NULL; 100 111 throw; … … 626 637 0, //WS_?, 627 638 0, 0, 1, 1, 628 HWND_DESKTOP,629 639 NULLHANDLE, 640 HWND_TOP, 630 641 0, 631 642 this, 632 643 NULL); 633 644 if (hwnd == NULLHANDLE) { 634 LOG((CLOG_ERR "failed to create window: %l d", WinGetLastError(m_hab)));645 LOG((CLOG_ERR "failed to create window: %lx", WinGetLastError(m_hab))); 635 646 throw XScreenOpenFailure(); 636 647 }
Note:
See TracChangeset
for help on using the changeset viewer.