Changeset 74475 in vbox for trunk/src/VBox/Additions/WINNT
- Timestamp:
- Sep 26, 2018 11:59:53 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxDnD.cpp
r74473 r74475 650 650 } 651 651 652 VbglR3DnDEventFree(pEvent->pVbglR3Event); 653 pEvent->pVbglR3Event = NULL; 652 if (pEvent) 653 { 654 VbglR3DnDEventFree(pEvent->pVbglR3Event); 655 pEvent->pVbglR3Event = NULL; 656 657 RTMemFree(pEvent); 658 } 654 659 655 660 return 0; … … 1815 1820 if (RT_FAILURE(rc)) 1816 1821 { 1817 VbglR3DnDEventFree(pVbglR3Event); 1818 pVbglR3Event = NULL; 1822 if (pEvent) 1823 { 1824 VbglR3DnDEventFree(pEvent->pVbglR3Event); 1825 1826 RTMemFree(pEvent); 1827 pEvent = NULL; 1828 } 1819 1829 1820 1830 LogFlowFunc(("Processing next message failed with rc=%Rrc\n", rc)); … … 1823 1833 * don't support the stuff we do on the guest side, so make sure we 1824 1834 * don't process invalid messages forever. */ 1825 if (rc == VERR_INVALID_PARAMETER) 1826 cMsgSkippedInvalid++; 1827 if (cMsgSkippedInvalid > 32) 1835 if (cMsgSkippedInvalid++ > 32) 1828 1836 { 1829 1837 LogRel(("DnD: Too many invalid/skipped messages from host, exiting ...\n")); … … 1834 1842 * not block the guest's UI. */ 1835 1843 pWnd->Reset(); 1836 1837 int rc2 = VbglR3DnDGHSendError(&pCtx->cmdCtx, rc);1838 if (RT_FAILURE(rc2))1839 {1840 /* Ignore the following errors reported back from the host. */1841 if ( rc2 != VERR_NOT_SUPPORTED1842 && rc2 != VERR_NOT_IMPLEMENTED)1843 {1844 LogRel(("DnD: Could not report error %Rrc back to host: %Rrc\n", rc, rc2));1845 }1846 }1847 1844 } 1848 1845 … … 1859 1856 if (pEvent) 1860 1857 { 1858 VbglR3DnDEventFree(pEvent->pVbglR3Event); 1859 1861 1860 RTMemFree(pEvent); 1862 1861 pEvent = NULL;
Note:
See TracChangeset
for help on using the changeset viewer.