Changeset 78562 in vbox for trunk/src/VBox/Additions/WINNT/SharedFolders/driver/vbsf.cpp
- Timestamp:
- May 17, 2019 11:36:45 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/SharedFolders/driver/vbsf.cpp
r78382 r78562 21 21 *********************************************************************************************************************************/ 22 22 #include "vbsf.h" 23 #include <iprt/initterm.h> 23 24 24 25 … … 146 147 VbglR0SfTerm(); 147 148 148 Log(("VBOXSF: MRxUnload: VBoxSF.sys driver object %p unloaded\n", DriverObject)); 149 Log(("VBOXSF: MRxUnload: VBoxSF.sys driver object %p almost unloaded, just RTR0Term left...\n", DriverObject)); 150 RTR0Term(); /* No logging after this. */ 149 151 } 150 152 … … 609 611 } 610 612 613 /* 614 * Initialize IPRT. 615 */ 616 vrc = RTR0Init(0); 617 if (RT_FAILURE(vrc)) 618 { 619 Log(("VBOXSF: DriverEntry: RTR0Init failed! %Rrc!\n", vrc)); 620 return STATUS_UNSUCCESSFUL; 621 } 622 611 623 /* Initialize VBox subsystem. */ 612 624 vrc = VbglR0SfInit(); … … 614 626 { 615 627 Log(("VBOXSF: DriverEntry: ERROR while initializing VBox subsystem (%Rrc)!\n", vrc)); 628 RTR0Term(); 616 629 return STATUS_UNSUCCESSFUL; 617 630 } … … 624 637 vrc)); 625 638 VbglR0SfTerm(); 639 RTR0Term(); 626 640 return STATUS_UNSUCCESSFUL; 627 641 } … … 769 783 VbglR0SfDisconnect(&g_SfClient); 770 784 VbglR0SfTerm(); 785 RTR0Term(); 771 786 772 787 if (VBoxMRxDeviceObject)
Note:
See TracChangeset
for help on using the changeset viewer.