VirtualBox

Changeset 106813 in vbox for trunk/src/VBox/Installer/win


Ignore:
Timestamp:
Nov 1, 2024 12:30:41 AM (3 months ago)
Author:
vboxsync
Message:

Installer/win/Stub: RTLdrLoadSystem can load COMCTL32.DLL since right after the 5.0 forward porting of the other lazy loading, so switch from -DelayLoad to VBoxDef2LazyLoad for the COMSPEC32.DLL import to simplify everything. jiraref:VBP-1253

Location:
trunk/src/VBox/Installer/win/Stub
Files:
1 edited
1 copied

Legend:

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

    r106798 r106813  
    5656VBoxStub_SDKS = \
    5757        VBoxNtDll
    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
    6558
    66 VBoxStub_LDFLAGS = -SubSystem:Windows -DelayLoad:comctl32.dll
     59VBoxStub_LDFLAGS = -SubSystem:Windows
    6760VBoxStub_POST_CMDS = $(VBOX_CHECK_IMPORTS) --image $(out) ntdll.dll kernel32.dll
    6861ifeq ($(KBUILD_TYPE),asan)
     
    180173        $(VBOX_DEF_2_LAZY_LOAD) --target "$(VBoxStub_BLD_TRG_ARCH)" --system --library SHELL32.DLL --output "$@" $(filter %.def, $^)
    181174
     175# Dynamic import no. 6: COMCTL32.DLL
     176VBoxStub_SOURCES += $(VBoxStub_0_OUTDIR)/ComCtl32LazyLoad.asm
     177VBoxStub_CLEAN   += $(VBoxStub_0_OUTDIR)/ComCtl32LazyLoad.asm
     178$$(VBoxStub_0_OUTDIR)/ComCtl32LazyLoad.asm: $(PATH_SUB_CURRENT)/comctl32.def $(VBOX_DEF_2_LAZY_LOAD) | $$(dir $$@)
     179        $(call MSG_TOOL,VBoxDef2LazyLoad,VBoxStub,$(filter %.def, $^),$@)
     180        $(QUIET)$(RM) -f -- "$@"
     181        $(VBOX_DEF_2_LAZY_LOAD) --target "$(VBoxStub_BLD_TRG_ARCH)" --system --library COMCTL32.DLL --output "$@" $(filter %.def, $^)
     182
    182183include $(FILE_KBUILD_SUB_FOOTER)
    183184
  • trunk/src/VBox/Installer/win/Stub/comctl32.def

    r106812 r106813  
    11; $Id$
    22;; @file
    3 ; Definitions for USER32.DLL lazy import library.
     3; Definitions for COMCTL32.DLL lazy import library.
    44;
    55
     
    2626;
    2727
    28 LIBRARY USER32.DLL
     28LIBRARY COMCTL32.DLL
    2929EXPORTS
    30     _MessageBoxW@16
    31     _MessageBoxA@16
    32     _GetDesktopWindow@0
     30    _InitCommonControlsEx@4
    3331
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