VirtualBox

Changeset 106713 in vbox for trunk/src/VBox/Additions


Ignore:
Timestamp:
Oct 26, 2024 12:28:53 AM (6 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
165595
Message:

Add/Nt/Installer: Loader warning fix and makefile adjustments for arm64. jiraref:VBP-1253

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  
    2929include $(KBUILD_PATH)/subheader.kmk
    3030
    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#
    3238PROGRAMS += VBoxWindowsAdditions
    3339VBoxWindowsAdditions_TEMPLATE = VBoxGuestR3Exe
    34 if1of ($(KBUILD_TARGET_ARCH), amd64)
    35  VBoxWindowsAdditions_BLD_TRG_ARCH = x86
     40if1of ($(KBUILD_TARGET_ARCH), x86 amd64)
     41VBoxWindowsAdditions_BLD_TRG_ARCH = x86
     42else
     43VBoxWindowsAdditions_BLD_TRG_ARCH = $(KBUILD_TARGET_ARCH)
    3644endif
    3745VBoxWindowsAdditions_DEFS    = _WIN32_WINNT=0x0400
     
    4856        /DISALLOWLIB:libcmt.lib
    4957 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.lib
     58        $(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
    5361endif
    5462VBoxWindowsAdditions_VBOX_IMPORT_CHECKER.win.x86 := nt4
  • trunk/src/VBox/Additions/WINNT/Installer/Loader/VBoxWindowsAdditions.cpp

    r106684 r106713  
    969969    SetLastError(NO_ERROR);
    970970    WCHAR wszExePath[MAX_PATH] = { 0 };
    971     DWORD cwcExePath = GetModuleFileNameW(NULL, wszExePath, sizeof(wszExePath));
     971    size_t cwcExePath = GetModuleFileNameW(NULL, wszExePath, sizeof(wszExePath));
    972972    if (cwcExePath == 0 || cwcExePath >= sizeof(wszExePath))
    973973        return ErrorMsgRcLastErrSUR(13, "GetModuleFileNameW failed: ", cwcExePath);
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette