Changeset 70350 in vbox for trunk/src/VBox/Additions
- Timestamp:
- Dec 26, 2017 5:24:43 PM (7 years ago)
- Location:
- trunk/src/VBox/Additions/common/VBoxGuest
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuest/Makefile.kmk
r70342 r70350 50 50 VBoxGuest_DEFS.solaris = VBOX_SVN_REV=$(VBOX_SVN_REV) 51 51 VBoxGuest_DEFS.win = VBOX_GUESTDRV_WITH_RELEASE_LOGGER 52 VBoxGuest_DEFS.win.x86 = TARGET_NT4 52 VBoxGuest_DEFS.win.x86 = TARGET_NT4 TARGET_NT3 RT_WITHOUT_NOCRT_WRAPPERS 53 53 VBoxGuest_DEFS.darwin = VBOX_GUESTDRV_WITH_RELEASE_LOGGER 54 54 ifeq ($(KBUILD_TYPE),release) … … 85 85 VBoxGuest_SDKS = ReorderCompilerIncs $(VBOX_WINDDK_GST_NT4) 86 86 VBoxGuest_LIBS = \ 87 $(VBOX_LIB_VBGL_R0BASE) \ 88 $(VBOX_LIB_IPRT_GUEST_R0) \ 87 89 $(PATH_SDK_$(VBOX_WINDDK_GST_NT4)_LIB)/exsup.lib \ 90 $(PATH_SDK_$(VBOX_WINDDK_GST_NT4)_LIB)/int64.lib \ 88 91 $(PATH_SDK_$(VBOX_WINDDK_GST_NT4)_LIB)/ntoskrnl.lib \ 89 92 $(PATH_SDK_$(VBOX_WINDDK_GST_NT4)_LIB)/hal.lib … … 94 97 endif 95 98 VBoxGuest_USES.win += vboximportchecker 96 VBoxGuest_VBOX_IMPORT_CHECKER.win.x86 = nt 4/r099 VBoxGuest_VBOX_IMPORT_CHECKER.win.x86 = nt31/r0 97 100 VBoxGuest_VBOX_IMPORT_CHECKER.win.amd64 = xp64/r0 98 101 endif # win … … 108 111 VBoxGuest_SOURCES += \ 109 112 VBoxGuest.cpp 110 ifeq ($(KBUILD_TARGET), win) 111 VBoxGuest_SOURCES += \ 113 VBoxGuest_SOURCES.win += \ 112 114 win/VBoxGuest.rc 113 endif 115 VBoxGuest_SOURCES.win.x86 += \ 116 ../../../Runtime/common/string/strcmp.asm \ 117 ../../../Runtime/common/string/strchr.asm \ 118 ../../../Runtime/r0drv/nt/nt3fakes-r0drv-nt.cpp \ 119 ../../../Runtime/r0drv/nt/nt3fakesA-r0drv-nt.asm 114 120 VBoxGuest_LIBS += \ 115 121 $(VBOX_LIB_VBGL_R0BASE) \ … … 159 165 160 166 VBoxGuest.cpp_DEFS = VBOX_SVN_REV=$(VBOX_SVN_REV) 161 162 if "$(KBUILD_TARGET)" == "win" && defined(VBOX_WITH_NT3_ADDITIONS)163 #164 # Windows NT 3.x driver.165 #166 SYSMODS.x86 += VBoxGuestNT3167 VBoxGuestNT3_EXTENDS = VBoxGuest168 VBoxGuestNT3_INSTTYPE.win = both169 VBoxGuestNT3_SDKS = ReorderCompilerIncs $(VBOX_WINDDK_GST_NT4)170 VBoxGuestNT3_DEFS = $(VBoxGuest_DEFS) TARGET_NT4 TARGET_NT3 RT_WITHOUT_NOCRT_WRAPPERS171 VBoxGuestNT3_SOURCES = \172 VBoxGuest.cpp \173 VBoxGuest-$(KBUILD_TARGET).cpp \174 ../../../Runtime/common/string/strcmp.asm \175 ../../../Runtime/common/string/strchr.asm \176 ../../../Runtime/r0drv/nt/nt3fakes-r0drv-nt.cpp \177 ../../../Runtime/r0drv/nt/nt3fakesA-r0drv-nt.asm \178 win/VBoxGuest.rc179 VBoxGuestNT3_LIBS = \180 $(VBOX_LIB_IPRT_GUEST_R0_NT4) \181 $(PATH_SDK_$(VBOX_WINDDK_GST_NT4)_LIB)/exsup.lib \182 $(PATH_SDK_$(VBOX_WINDDK_GST_NT4)_LIB)/int64.lib \183 $(PATH_SDK_$(VBOX_WINDDK_GST_NT4)_LIB)/ntoskrnl.lib \184 $(PATH_SDK_$(VBOX_WINDDK_GST_NT4)_LIB)/hal.lib \185 $(VBOX_LIB_VBGL_R0BASE)186 VBoxGuestNT3_VBOX_IMPORT_CHECKER.win.x86 = nt31/r0187 endif # win188 167 endif # enabled 189 168 -
trunk/src/VBox/Additions/common/VBoxGuest/win/VBoxGuestInst.cpp
r70342 r70350 54 54 } 55 55 56 uint32_t const uMajorNtVer = GetVersion() & 0xff; 57 const char *pszSlashName = uMajorNtVer < 4 ? "\\VBoxGuestNT3.sys" : "\\VBoxGuest.sys"; 56 const char *pszSlashName = "\\VBoxGuest.sys"; 58 57 char szDriver[MAX_PATH * 2]; 59 58 GetCurrentDirectory(MAX_PATH, szDriver); … … 63 62 GetSystemDirectory(szDriver, sizeof(szDriver)); 64 63 strcat(strcat(szDriver, "\\drivers"), pszSlashName); 65 66 /* Try FAT name abbreviation. */67 if ( GetFileAttributesA(szDriver) == INVALID_FILE_ATTRIBUTES68 && uMajorNtVer < 4)69 {70 pszSlashName = "\\VBoxGst3.sys";71 GetCurrentDirectory(MAX_PATH, szDriver);72 strcat(szDriver, pszSlashName);73 if (GetFileAttributesA(szDriver) == INVALID_FILE_ATTRIBUTES)74 {75 GetSystemDirectory(szDriver, sizeof(szDriver));76 strcat(strcat(szDriver, "\\drivers"), pszSlashName);77 78 }79 }80 64 } 81 65
Note:
See TracChangeset
for help on using the changeset viewer.