Changeset 106798 in vbox for trunk/src/VBox/Installer/win/Stub
- Timestamp:
- Oct 30, 2024 11:54:21 PM (3 months ago)
- Location:
- trunk/src/VBox/Installer/win/Stub
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Installer/win/Stub/Makefile.kmk
r106605 r106798 42 42 # 43 43 PROGRAMS += VBoxStub 44 VBoxStub_TEMPLATE := VBoxStubTemplate 45 VBoxStub_BLD_TRG_ARCH := x86 46 VBoxStub_DEFS := _WIN32_WINNT=0x0501 IN_RT_R3 44 VBoxStub_TEMPLATE := VBoxStubTemplate 45 if1of ($(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 48 else 49 VBoxStub_DEFS := IN_RT_R3 50 endif 47 51 48 52 VBoxStub_SOURCES = \ … … 52 56 VBoxStub_SDKS = \ 53 57 VBoxNtDll 54 VBoxStub_LIBS += \ 55 $(PATH_TOOL_$(VBOX_VCC_TOOL_STEM)X86_LIB)/delayimp.lib 58 ifdef VBoxStub_BLD_TRG_ARCH 59 VBoxStub_LIBS += \ 60 $(PATH_TOOL_$(VBOX_VCC_TOOL_STEM)X86_LIB)/delayimp.lib 61 else 62 VBoxStub_LIBS += \ 63 $(PATH_TOOL_$(VBOX_VCC_TOOL)_LIB)/delayimp.lib 64 endif 56 65 57 66 VBoxStub_LDFLAGS = -SubSystem:Windows -DelayLoad:comctl32.dll -
trunk/src/VBox/Installer/win/Stub/VBoxStub.cpp
r106061 r106798 433 433 434 434 /* Check the content. */ 435 uint32_t off = 0;435 size_t off = 0; 436 436 while (off < cbData) 437 437 { … … 439 439 size_t cbToRead = RT_MIN(cbData - off, sizeof(abBuf)); 440 440 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", 442 442 idxPackage, pszTempFile, off, rc)); 443 443 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)", 445 445 idxPackage, pszTempFile, cbToRead, off)); 446 446 off += cbToRead;
Note:
See TracChangeset
for help on using the changeset viewer.