Changeset 223 in vbox
- Timestamp:
- Jan 22, 2007 10:38:28 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuestLib/SysHlp.cpp
r1 r223 24 24 #include "SysHlp.h" 25 25 26 #define LOG_GROUP LOG_GROUP_HGCM 27 #include <VBox/log.h> 26 28 #include <iprt/assert.h> 27 29 … … 55 57 if (NT_SUCCESS (rc)) 56 58 { 59 Log(("vbglDriverOpen VBoxGuest successful pDeviceObject=%x\n", pDeviceObject)); 57 60 pDriver->pDeviceObject = pDeviceObject; 58 61 pDriver->pFileObject = pFileObject; 59 62 return VINF_SUCCESS; 60 63 } 61 /** @todo return RTErrConvertFromNtStatus(rc)! */ 64 /** @todo return RTErrConvertFromNtStatus(rc)! */ 65 Log(("vbglDriverOpen VBoxGuest failed with ntstatus=%x\n", rc)); 62 66 return rc; 63 67 #else … … 93 97 if (irp == NULL) 94 98 { 99 Log(("vbglDriverIOCtl: IoBuildDeviceIoControlRequest failed\n")); 95 100 return VERR_NO_MEMORY; 96 101 } 97 102 98 103 NTSTATUS rc = IoCallDriver (pDriver->pDeviceObject, irp); 104 105 if (!NT_SUCCESS(rc)) 106 Log(("vbglDriverIOCtl: IoCallDriver failed with ntstatus=%x\n", rc)); 99 107 100 108 return NT_SUCCESS(rc)? VINF_SUCCESS: VERR_VBGL_IOCTL_FAILED; … … 107 115 { 108 116 #ifdef __WIN__ 117 Log(("vbglDriverClose pDeviceObject=%x\n", pDriver->pDeviceObject)); 109 118 ObDereferenceObject (pDriver->pFileObject); 110 119 #else
Note:
See TracChangeset
for help on using the changeset viewer.