Changeset 69989 in vbox for trunk/src/VBox/GuestHost/OpenGL
- Timestamp:
- Dec 7, 2017 4:25:08 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/GuestHost/OpenGL/util/vboxhgcm.c
r69500 r69989 37 37 #include "cr_process.h" 38 38 39 #include <iprt/initterm.h> 39 40 #include <iprt/thread.h> 40 41 … … 705 706 706 707 rc = crVBoxHGCMCall(conn, &parms.hdr, sizeof(parms)); 707 callRes = parms.hdr.Hdr.rc; 708 callRes = parms.hdr.Hdr.rc; /** @todo now rc == parms.hdr.Hdr.rc */ 708 709 } 709 710 else … … 719 720 720 721 rc = crVBoxHGCMCall(conn, &parms.hdr, sizeof(parms)); 721 callRes = parms.hdr.Hdr.rc; 722 callRes = parms.hdr.Hdr.rc; /** @todo now rc == parms.hdr.Hdr.rc */ 722 723 } 723 724 … … 759 760 rc = crVBoxHGCMCall(conn, &parms.hdr, sizeof(parms)); 760 761 761 if (RT_FAILURE(rc) || RT_FAILURE(parms.hdr.Hdr.rc) )762 if (RT_FAILURE(rc) || RT_FAILURE(parms.hdr.Hdr.rc) /** @todo now rc == parms.hdr.Hdr.rc */) 762 763 { 763 764 crWarning("SHCRGL_GUEST_FN_READ failed with %x %x\n", rc, parms.hdr.Hdr.rc); … … 835 836 836 837 rc = crVBoxHGCMCall(conn, &wbParms.hdr, sizeof(wbParms)); 837 if (RT_FAILURE(rc) || RT_FAILURE(wbParms.hdr.Hdr.rc) )838 if (RT_FAILURE(rc) || RT_FAILURE(wbParms.hdr.Hdr.rc) /** @todo now rc == wbParms.hdr.Hdr.rc */) 838 839 { 839 840 crError("SHCRGL_GUEST_FN_WRITE_BUFFER (%i) failed with %x %x\n", wbParms.pBuffer.u.Pointer.size, rc, wbParms.hdr.Hdr.rc); … … 866 867 #endif 867 868 868 if (RT_FAILURE(rc) || RT_FAILURE(parms.hdr.Hdr.rc) )869 { 870 871 if ((VERR_BUFFER_OVERFLOW == parms.hdr.Hdr.rc) && RT_SUCCESS(rc))869 if (RT_FAILURE(rc) || RT_FAILURE(parms.hdr.Hdr.rc) /** @todo now rc == parms.hdr.Hdr.rc */) 870 { 871 872 if ((VERR_BUFFER_OVERFLOW == parms.hdr.Hdr.rc) /* && RT_SUCCESS(rc) */) 872 873 { 873 874 /* reallocate buffer and retry */ … … 991 992 rc = crVBoxHGCMCall(conn, &parms.hdr, sizeof(parms)); 992 993 993 if (RT_FAILURE(rc) || RT_FAILURE(parms.hdr.Hdr.rc) )994 if (RT_FAILURE(rc) || RT_FAILURE(parms.hdr.Hdr.rc) /** @todo now rc == parms.hdr.Hdr.rc */) 994 995 { 995 996 crDebug("SHCRGL_GUEST_FN_READ failed with %x %x\n", rc, parms.hdr.Hdr.rc); … … 1194 1195 if (RT_SUCCESS(rc)) 1195 1196 { 1196 rc = parms.hdr.Hdr.rc; 1197 rc = parms.hdr.Hdr.rc; /** @todo now rc == parms.hdr.Hdr.rc */ 1197 1198 if (RT_SUCCESS(rc)) 1198 1199 { … … 1256 1257 rc = crVBoxHGCMCall(conn, &parms.hdr, sizeof(parms)); 1257 1258 1258 if (RT_FAILURE(rc) || RT_FAILURE(parms.hdr.Hdr.rc) )1259 if (RT_FAILURE(rc) || RT_FAILURE(parms.hdr.Hdr.rc) /** @todo now rc == parms.hdr.Hdr.rc */) 1259 1260 { 1260 1261 crWarning("SHCRGL_GUEST_FN_SET_PID failed!"); … … 1275 1276 int rc; 1276 1277 VBOXCRHGSMIPROFILE_FUNC_PROLOGUE(); 1278 RTR3InitDll(RTR3INIT_FLAGS_UNOBTRUSIVE); 1277 1279 rc = VbglR3InitUser(); 1278 1280 if (RT_SUCCESS(rc))
Note:
See TracChangeset
for help on using the changeset viewer.