Changeset 26828 in vbox for trunk/src/VBox/Additions/WINNT
- Timestamp:
- Feb 26, 2010 11:12:20 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxClipboard.cpp
r26826 r26828 139 139 { 140 140 /* Clipboard was updated by another application. */ 141 rc = vboxClipboardChanged(pCtx); 141 /* WM_DRAWCLIPBOARD always expects a return code of 0, so don't change "rc" here. */ 142 if (RT_FAILURE(vboxClipboardChanged(pCtx)) 143 Log(("vboxClipboardProcessMsg: vboxClipboardChanged failed, rc = %Rrc\n", rc)); 142 144 } 143 145 144 146 /* Pass the message to next windows in the clipboard chain. */ 145 if (RT_SUCCESS(rc)) 146 rc = SendMessage(pCtx->hwndNextInChain, msg, wParam, lParam); 147 SendMessage(pCtx->hwndNextInChain, msg, wParam, lParam); 147 148 } break; 148 149 … … 344 345 if (FALSE == OpenClipboard(hwnd)) 345 346 { 346 DWORD dwErr = GetLastError(); 347 Log(("vboxClipboardProcessMsg: WM_USER: Failed to open clipboard! Last error = %ld\n", dwErr)); 348 rc = RTErrConvertFromWin32(dwErr); 347 Log(("vboxClipboardProcessMsg: WM_USER: Failed to open clipboard! Last error = %ld\n", GetLastErrors())); 349 348 } 350 349 else … … 389 388 if (FALSE == OpenClipboard(hwnd)) 390 389 { 391 DWORD dwErr = GetLastError(); 392 Log(("vboxClipboardProcessMsg: WM_USER + 1: Failed to open clipboard! Last error = %ld\n", dwErr)); 393 rc = RTErrConvertFromWin32(dwErr); 390 Log(("vboxClipboardProcessMsg: WM_USER: Failed to open clipboard! Last error = %ld\n", GetLastErrors())); 394 391 } 395 392 else
Note:
See TracChangeset
for help on using the changeset viewer.