VirtualBox

Changeset 96595 in vbox for trunk/src/VBox/Runtime


Ignore:
Timestamp:
Sep 4, 2022 8:31:37 PM (2 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
153472
Message:

IPRT/nocrt: Corrected main executable entrypoint parameter mixup (no parameters, get the PEB yourself if your're a win32 prog). bugref:10261

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/win/nocrt-startup-exe-win.cpp

    r96588 r96595  
    8686
    8787
    88 DECLASM(void) CustomMainEntrypoint(PPEB pPeb)
     88DECLASM(void) CustomMainEntrypoint(void)
    8989{
     90    /* Looks like might have gotten the PPEB as parameter here before NT4,
     91       however, there the EXE entry function clearly takes no parameters.
     92       So, we have to retrieve the PEB our selves here. */
     93    PPEB_COMMON const pPeb = RTNtCurrentPeb();
     94
    9095    /*
    9196     * Initialize stuff.
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