Changeset 2714 in vbox for trunk/src/VBox/Additions/common/VBoxGuestLib
- Timestamp:
- May 18, 2007 1:32:20 PM (18 years ago)
- Location:
- trunk/src/VBox/Additions/common/VBoxGuestLib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuestLib/GenericRequest.cpp
r2304 r2714 29 29 { 30 30 int rc = VbglEnter (); 31 VMMDevRequestHeader *pReq;32 31 33 32 if (VBOX_FAILURE(rc)) … … 40 39 } 41 40 42 pReq = (VMMDevRequestHeader *)VbglPhysHeapAlloc (cbSize);41 VMMDevRequestHeader *pReq = (VMMDevRequestHeader *)VbglPhysHeapAlloc (cbSize); 43 42 if (!pReq) 44 43 { … … 74 73 return VERR_INVALID_PARAMETER; 75 74 76 if (g_vbgldata.portVMMDev == 0)77 return VERR_VBGL_NOT_INITIALIZED;78 79 75 physaddr = VbglPhysHeapGetPhysAddr (pReq); 80 76 if (!physaddr) -
trunk/src/VBox/Additions/common/VBoxGuestLib/Init.cpp
r2698 r2714 33 33 34 34 #ifndef VBGL_VBOXGUEST 35 static int vbglQueryVMMDevPort (void) 35 /* The guest library uses lazy initialization for VMMDev port and memory, 36 * because these values are provided by the VBoxGuest driver and it might 37 * be loaded later than other drivers. 38 * The VbglEnter checks the current library status, tries to retrive these 39 * values and fails if they are unavailable. 40 */ 41 static void vbglQueryVMMDevPort (void) 36 42 { 37 43 int rc = VINF_SUCCESS; … … 61 67 62 68 dprintf (("vbglQueryVMMDevPort rc = %d\n", rc)); 63 64 return rc;65 69 } 66 70 #endif … … 77 81 #endif 78 82 79 rc = g_vbgldata.status != VbglStatusNotInitialized? VINF_SUCCESS: VERR_VBGL_NOT_INITIALIZED;83 rc = g_vbgldata.status == VbglStatusReady? VINF_SUCCESS: VERR_VBGL_NOT_INITIALIZED; 80 84 81 85 // dprintf(("VbglEnter: rc = %d\n", rc)); … … 171 175 if (VBOX_SUCCESS(rc)) 172 176 { 173 /* Obtain VMMDev port via IOCTL to VBoxGuest main driver. */174 rc =vbglQueryVMMDevPort ();177 /* Try to obtain VMMDev port via IOCTL to VBoxGuest main driver. */ 178 vbglQueryVMMDevPort (); 175 179 176 180 #ifdef VBOX_HGCM 177 if (VBOX_SUCCESS(rc)) 178 { 179 rc = vbglHGCMInit (); 180 } 181 #endif 181 rc = vbglHGCMInit (); 182 #endif /* VBOX_HGCM */ 182 183 183 184 if (VBOX_FAILURE(rc))
Note:
See TracChangeset
for help on using the changeset viewer.