VirtualBox

Ignore:
Timestamp:
Oct 30, 2024 11:54:21 PM (3 months ago)
Author:
vboxsync
Message:

Installer/win/Stub: Don't bother crossbuilding the installer stub on win.arm64, not worth the extra effort. jiraref:VBP-1253

Location:
trunk/src/VBox/Installer/win/Stub
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/win/Stub/Makefile.kmk

    r106605 r106798  
    4242#
    4343PROGRAMS += VBoxStub
    44 VBoxStub_TEMPLATE     := VBoxStubTemplate
    45 VBoxStub_BLD_TRG_ARCH := x86
    46 VBoxStub_DEFS         := _WIN32_WINNT=0x0501 IN_RT_R3
     44VBoxStub_TEMPLATE      := VBoxStubTemplate
     45if1of ($(KBUILD_TARGET_ARCH), x86 amd64) # don't care for this on arm64
     46 VBoxStub_BLD_TRG_ARCH := x86
     47 VBoxStub_DEFS         := IN_RT_R3 _WIN32_WINNT=0x0501
     48else
     49 VBoxStub_DEFS         := IN_RT_R3
     50endif
    4751
    4852VBoxStub_SOURCES = \
     
    5256VBoxStub_SDKS = \
    5357        VBoxNtDll
    54 VBoxStub_LIBS += \
    55         $(PATH_TOOL_$(VBOX_VCC_TOOL_STEM)X86_LIB)/delayimp.lib
     58ifdef VBoxStub_BLD_TRG_ARCH
     59 VBoxStub_LIBS += \
     60        $(PATH_TOOL_$(VBOX_VCC_TOOL_STEM)X86_LIB)/delayimp.lib
     61else
     62 VBoxStub_LIBS += \
     63        $(PATH_TOOL_$(VBOX_VCC_TOOL)_LIB)/delayimp.lib
     64endif
    5665
    5766VBoxStub_LDFLAGS = -SubSystem:Windows -DelayLoad:comctl32.dll
  • trunk/src/VBox/Installer/win/Stub/VBoxStub.cpp

    r106061 r106798  
    433433
    434434    /* Check the content. */
    435     uint32_t off = 0;
     435    size_t off = 0;
    436436    while (off < cbData)
    437437    {
     
    439439        size_t  cbToRead = RT_MIN(cbData - off, sizeof(abBuf));
    440440        rc = RTFileRead(hFile, abBuf, cbToRead, NULL);
    441         AssertRCReturn(rc, LogErrorRc(rc, "#%u: RTFileRead failed on '%s' at offset %#RX32: %Rrc",
     441        AssertRCReturn(rc, LogErrorRc(rc, "#%u: RTFileRead failed on '%s' at offset %#zx: %Rrc",
    442442                                      idxPackage, pszTempFile, off, rc));
    443443        AssertReturn(memcmp(abBuf, &pbData[off], cbToRead) == 0,
    444                      LogErrorRc(VERR_STATE_CHANGED, "#%u: File '%s' has change (mismatch in %#zx byte block at %#RX32)",
     444                     LogErrorRc(VERR_STATE_CHANGED, "#%u: File '%s' has change (mismatch in %#zx byte block at %#zx)",
    445445                                idxPackage, pszTempFile, cbToRead, off));
    446446        off += cbToRead;
Note: See TracChangeset for help on using the changeset viewer.

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