VirtualBox

Changeset 67954 in vbox


Ignore:
Timestamp:
Jul 13, 2017 9:06:09 PM (7 years ago)
Author:
vboxsync
Message:

win/SUPDrv-win*: Changed SUPR0Printf from directly passing the parameters to DbgPrint to format into a stack buffer like the rest. Fixed garbage caused by using in SUPR0Printf calls.

Location:
trunk/src/VBox/HostDrivers/Support/win
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/win/SUPDrv-win.cpp

    r64281 r67954  
    24642464
    24652465
    2466 #if 0 /* See alternative in SUPDrvA-win.asm */
    24672466/**
    24682467 * Alternative version of SUPR0Printf for Windows.
     
    24742473{
    24752474    va_list va;
    2476     char    szMsg[512];
     2475    char    szMsg[384];
    24772476
    24782477    va_start(va, pszFormat);
     
    24842483    return 0;
    24852484}
    2486 #endif
    24872485
    24882486
  • trunk/src/VBox/HostDrivers/Support/win/SUPDrvA-win.asm

    r62490 r67954  
    3131
    3232BEGINCODE
    33 %ifdef RT_ARCH_AMD64
    34  %define _DbgPrint DbgPrint
    35 %endif
    36 extern _DbgPrint
    37 
    38 %if 1 ; see alternative in SUPDrv-win.cpp
    39 ;;
    40 ; Kind of alias for DbgPrint
    41 export NAME(SUPR0Printf)
    42 BEGINPROC SUPR0Printf
    43         jmp     _DbgPrint
    44 ENDPROC SUPR0Printf
    45 %endif
    46 
    4733
    4834%ifdef VBOX_WITH_HARDENING
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