Changeset 91746 in vbox for trunk/src/VBox/Additions/WINNT/VBoxTray
- Timestamp:
- Oct 14, 2021 8:50:31 PM (3 years ago)
- svn:sync-xref-src-repo-rev:
- 147502
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxClipboard.cpp
r90054 r91746 538 538 const SHCLFORMAT fFormat = (uint32_t)pEvent->u.fReadData; 539 539 540 LogFlowFunc(("SHCL_WIN_WM_READ_DATA: fFormat=%#x\n", fFormat)); 541 542 int rc = SharedClipboardWinOpen(hwnd); 540 543 HANDLE hClip = NULL; 541 542 LogFlowFunc(("SHCL_WIN_WM_READ_DATA: fFormat=%#x\n", fFormat));543 544 int rc = SharedClipboardWinOpen(hwnd);545 544 if (RT_SUCCESS(rc)) 546 545 { … … 558 557 } 559 558 else 560 {561 559 hClip = NULL; 562 }563 560 } 564 561 } … … 577 574 } 578 575 else 579 {580 576 hClip = NULL; 581 }582 577 } 583 578 } … … 598 593 } 599 594 else 600 {601 595 hClip = NULL; 602 }603 596 } 604 597 } 605 598 } 599 606 600 if (hClip == NULL) 607 {608 601 LogFunc(("SHCL_WIN_WM_READ_DATA: hClip=NULL, lastError=%ld\n", GetLastError())); 609 602 610 /* Requested clipboard format is not available, send empty data. */611 VbglR3ClipboardWriteData(pCtx->CmdCtx.idClient, VBOX_SHCL_FMT_NONE, NULL, 0);612 }613 614 603 SharedClipboardWinClose(); 615 604 } 605 606 /* If the requested clipboard format is not available, we must send empty data. */ 607 if (hClip == NULL) 608 VbglR3ClipboardWriteDataEx(&pEvent->cmdCtx, VBOX_SHCL_FMT_NONE, NULL, 0); 616 609 break; 617 610 }
Note:
See TracChangeset
for help on using the changeset viewer.