Changeset 70389 in vbox for trunk/src/VBox/Additions/common/VBoxGuest/lib
- Timestamp:
- Dec 29, 2017 4:52:03 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuest/lib/VBoxGuestR3LibGuestCtrl.cpp
r69500 r70389 480 480 VbglHGCMParmUInt32Set(&Msg.flags, 0); 481 481 482 int rc = VbglR3HGCMCall(&Msg.hdr, sizeof(Msg));482 int rc = VbglR3HGCMCall(&Msg.hdr, RT_UOFFSETOF(HGCMMsgProcOutput, data)); 483 483 if (RT_SUCCESS(rc)) 484 484 { … … 852 852 VbglHGCMParmUInt32Set(&Msg.u.open.handle, uFileHandle); 853 853 854 return VbglR3HGCMCall(&Msg.hdr, sizeof(Msg));854 return VbglR3HGCMCall(&Msg.hdr, RT_UOFFSET_AFTER(HGCMReplyFileNotify, u.open)); 855 855 } 856 856 … … 867 867 VbglHGCMParmUInt32Set(&Msg.rc, uRc); 868 868 869 return VbglR3HGCMCall(&Msg.hdr, sizeof(Msg));869 return VbglR3HGCMCall(&Msg.hdr, RT_UOFFSETOF(HGCMReplyFileNotify, u)); 870 870 } 871 871 … … 881 881 VbglHGCMParmUInt32Set(&Msg.rc, uRc); 882 882 883 return VbglR3HGCMCall(&Msg.hdr, sizeof(Msg));883 return VbglR3HGCMCall(&Msg.hdr, RT_UOFFSETOF(HGCMReplyFileNotify, u)); 884 884 } 885 885 … … 898 898 VbglHGCMParmPtrSet(&Msg.u.read.data, pvData, cbData); 899 899 900 return VbglR3HGCMCall(&Msg.hdr, sizeof(Msg));900 return VbglR3HGCMCall(&Msg.hdr, RT_UOFFSET_AFTER(HGCMReplyFileNotify, u.read)); 901 901 } 902 902 … … 914 914 VbglHGCMParmUInt32Set(&Msg.u.write.written, uWritten); 915 915 916 return VbglR3HGCMCall(&Msg.hdr, sizeof(Msg));916 return VbglR3HGCMCall(&Msg.hdr, RT_UOFFSET_AFTER(HGCMReplyFileNotify, u.write)); 917 917 } 918 918 … … 930 930 VbglHGCMParmUInt64Set(&Msg.u.seek.offset, uOffActual); 931 931 932 return VbglR3HGCMCall(&Msg.hdr, sizeof(Msg));932 return VbglR3HGCMCall(&Msg.hdr, RT_UOFFSET_AFTER(HGCMReplyFileNotify, u.seek)); 933 933 } 934 934 … … 946 946 VbglHGCMParmUInt64Set(&Msg.u.tell.offset, uOffActual); 947 947 948 return VbglR3HGCMCall(&Msg.hdr, sizeof(Msg));948 return VbglR3HGCMCall(&Msg.hdr, RT_UOFFSET_AFTER(HGCMReplyFileNotify, u.tell)); 949 949 } 950 950
Note:
See TracChangeset
for help on using the changeset viewer.