Changeset 10377 in vbox for trunk/src/VBox/HostDrivers/Support/win
- Timestamp:
- Jul 8, 2008 4:26:13 PM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 33025
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/win/SUPDrv-win.cpp
r10265 r10377 232 232 pFileObj->FsContext = NULL; 233 233 PSUPDRVSESSION pSession; 234 int rc = supdrvCreateSession(pDevExt, &pSession); 234 #if 0 /** @todo check if this works, consider OBJ_KERNEL_HANDLE too. */ 235 bool fUser = pIrp->RequestorMode != KernelMode; 236 #else 237 bool fUser = true; 238 #endif 239 int rc = supdrvCreateSession(pDevExt, fUser, &pSession); 235 240 if (!rc) 236 {237 pSession->Uid = NIL_RTUID;238 pSession->Gid = NIL_RTGID;239 pSession->Process = RTProcSelf();240 pSession->R0Process = RTR0ProcHandleSelf();241 241 pFileObj->FsContext = pSession; 242 }243 242 244 243 NTSTATUS rcNt = pIrp->IoStatus.Status = VBoxDrvNtErr2NtStatus(rc);
Note:
See TracChangeset
for help on using the changeset viewer.