Changeset 106713 in vbox for trunk/src/VBox/Additions
- Timestamp:
- Oct 26, 2024 12:28:53 AM (6 months ago)
- svn:sync-xref-src-repo-rev:
- 165595
- Location:
- trunk/src/VBox/Additions/WINNT/Installer/Loader
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Installer/Loader/Makefile.kmk
r106438 r106713 29 29 include $(KBUILD_PATH)/subheader.kmk 30 30 31 # This has to be 32-bit. 31 # 32 # On the final ISO this'll bit an x86 binary. 33 # 34 # However, to avoid building RuntimeGuestR3-x86 on arm64 when we won't use the 35 # result anyway, we simplify by only building the x86 variant on amd64 and x86. 36 # When packing we'll pick one of those, rather than the arm64 variant. 37 # 32 38 PROGRAMS += VBoxWindowsAdditions 33 39 VBoxWindowsAdditions_TEMPLATE = VBoxGuestR3Exe 34 if1of ($(KBUILD_TARGET_ARCH), amd64) 35 VBoxWindowsAdditions_BLD_TRG_ARCH = x86 40 if1of ($(KBUILD_TARGET_ARCH), x86 amd64) 41 VBoxWindowsAdditions_BLD_TRG_ARCH = x86 42 else 43 VBoxWindowsAdditions_BLD_TRG_ARCH = $(KBUILD_TARGET_ARCH) 36 44 endif 37 45 VBoxWindowsAdditions_DEFS = _WIN32_WINNT=0x0400 … … 48 56 /DISALLOWLIB:libcmt.lib 49 57 VBoxWindowsAdditions_LIBS = \ 50 $(PATH_TOOL_$(TEMPLATE_VBoxR3Exe_TOOL.win.$( KBUILD_TARGET_ARCH))_LIB)/oldnames.lib \51 $(PATH_TOOL_$(TEMPLATE_VBoxR3Exe_TOOL.win.$( KBUILD_TARGET_ARCH))_LIB)/libcmt.lib \52 $(PATH_TOOL_$(TEMPLATE_VBoxR3Exe_TOOL.win.$( KBUILD_TARGET_ARCH))_LIB)/libcpmt.lib58 $(PATH_TOOL_$(TEMPLATE_VBoxR3Exe_TOOL.win.$(VBoxWindowsAdditions_BLD_TRG_ARCH))_LIB)/oldnames.lib \ 59 $(PATH_TOOL_$(TEMPLATE_VBoxR3Exe_TOOL.win.$(VBoxWindowsAdditions_BLD_TRG_ARCH))_LIB)/libcmt.lib \ 60 $(PATH_TOOL_$(TEMPLATE_VBoxR3Exe_TOOL.win.$(VBoxWindowsAdditions_BLD_TRG_ARCH))_LIB)/libcpmt.lib 53 61 endif 54 62 VBoxWindowsAdditions_VBOX_IMPORT_CHECKER.win.x86 := nt4 -
trunk/src/VBox/Additions/WINNT/Installer/Loader/VBoxWindowsAdditions.cpp
r106684 r106713 969 969 SetLastError(NO_ERROR); 970 970 WCHAR wszExePath[MAX_PATH] = { 0 }; 971 DWORDcwcExePath = GetModuleFileNameW(NULL, wszExePath, sizeof(wszExePath));971 size_t cwcExePath = GetModuleFileNameW(NULL, wszExePath, sizeof(wszExePath)); 972 972 if (cwcExePath == 0 || cwcExePath >= sizeof(wszExePath)) 973 973 return ErrorMsgRcLastErrSUR(13, "GetModuleFileNameW failed: ", cwcExePath);
Note:
See TracChangeset
for help on using the changeset viewer.