- Timestamp:
- Mar 12, 2008 9:58:58 AM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 28863
- Location:
- trunk/src/VBox/Additions/common/VBoxGuestLib
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibClipboard.cpp
r7411 r7428 38 38 VBGLR3DECL(int) VbglR3ClipboardConnect(uint32_t *pu32ClientId) 39 39 { 40 VBoxGuestHGCMConnectInfo Info = { 0 }; 41 40 VBoxGuestHGCMConnectInfo Info; 42 41 Info.result = (uint32_t)VERR_WRONG_ORDER; /** @todo drop the cast when the result type has been fixed! */ 43 42 Info.Loc.type = VMMDevHGCMLoc_LocalHost_Existing; 44 //memset(&Info.Loc.u, 0, sizeof(Info.Loc.u));43 memset(&Info.Loc.u, 0, sizeof(Info.Loc.u)); 45 44 strcpy(Info.Loc.u.host.achName, "VBoxSharedClipboard"); 45 Info.u32ClientID = UINT32_MAX; /* try make valgrid shut up. */ 46 46 47 47 int rc = vbglR3DoIOCtl(IOCTL_VBOXGUEST_HGCM_CONNECT, &Info, sizeof(Info)); … … 87 87 VBGLR3DECL(int) VbglR3ClipboardGetHostMsg(uint32_t u32ClientId, uint32_t *pMsg, uint32_t *pfFormats) 88 88 { 89 VBoxClipboardGetHostMsg Msg = { 0 };89 VBoxClipboardGetHostMsg Msg; 90 90 91 91 Msg.hdr.result = (uint32_t)VERR_WRONG_ORDER; /** @todo drop the cast when the result type has been fixed! */ -
trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibSeamless.cpp
r7411 r7428 65 65 VBGLR3DECL(int) VbglR3SeamlessWaitEvent(VMMDevSeamlessMode *pMode) 66 66 { 67 VBoxGuestWaitEventInfo waitEvent = { 0 };67 VBoxGuestWaitEventInfo waitEvent; 68 68 int rc; 69 69 … … 71 71 waitEvent.u32TimeoutIn = RT_INDEFINITE_WAIT; 72 72 waitEvent.u32EventMaskIn = VMMDEV_EVENT_SEAMLESS_MODE_CHANGE_REQUEST; 73 waitEvent.u32Result = VBOXGUEST_WAITEVENT_ERROR; 74 waitEvent.u32EventFlagsOut = 0; 73 75 rc = vbglR3DoIOCtl(VBOXGUEST_IOCTL_WAITEVENT, &waitEvent, sizeof(waitEvent)); 74 76 if (RT_SUCCESS(rc)) -
trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibVideo.cpp
r7411 r7428 163 163 uint32_t *piDisplay) 164 164 { 165 VBoxGuestWaitEventInfo waitEvent = { 0 };165 VBoxGuestWaitEventInfo waitEvent; 166 166 int rc; 167 167 … … 174 174 waitEvent.u32TimeoutIn = RT_INDEFINITE_WAIT; 175 175 waitEvent.u32EventMaskIn = VMMDEV_EVENT_DISPLAY_CHANGE_REQUEST; 176 waitEvent.u32Result = VBOXGUEST_WAITEVENT_ERROR; 177 waitEvent.u32EventFlagsOut = 0; 176 178 rc = vbglR3DoIOCtl(VBOXGUEST_IOCTL_WAITEVENT, &waitEvent, sizeof(waitEvent)); 177 179 if (RT_SUCCESS(rc))
Note:
See TracChangeset
for help on using the changeset viewer.