VirtualBox

Ignore:
Timestamp:
Jan 19, 2023 2:25:46 PM (2 years ago)
Author:
vboxsync
Message:

Add/WinNT/Graphics: Converted some optionally compiled 3D related tests and windbg extensions from VBOXR3STATIC to more appropriate templates and made them build again. Guard is now called VBOX_WITH_VBOXVIDEOWINDBG. bugref:10348

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/dbg/VBoxVideoWinDbg.cpp

    r98103 r98141  
    2626 */
    2727
     28#define IPRT_NO_CRT_FOR_3RD_PARTY /* lazy */
    2829#include <iprt/win/windows.h>
    2930#define KDEXT_64BIT
    30 #include <wdbgexts.h>
     31#include <iprt/win/wdbgexts.h>
    3132
    3233#define VBOXVWD_VERSION_MAJOR 1
     
    4344 * DLL entry point.
    4445 */
    45 BOOL WINAPI DllMain(HINSTANCE hInstance,
    46                     DWORD     dwReason,
    47                     LPVOID    lpReserved)
    48 {
    49     BOOL bOk = TRUE;
    50 
    51     switch (dwReason)
    52     {
    53         case DLL_PROCESS_ATTACH:
    54         {
    55             break;
    56         }
    57 
    58         case DLL_PROCESS_DETACH:
    59         {
    60             break;
    61         }
    62 
    63         default:
    64             break;
    65     }
    66     return bOk;
     46BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID lpReserved)
     47{
     48    RT_NOREF(hInstance, dwReason, lpReserved);
     49    return TRUE;
    6750}
    6851
     
    10285DECLARE_API(help)
    10386{
     87    RT_NOREF(args, dwProcessor, dwCurrentPc, hCurrentThread, hCurrentProcess);
    10488    dprintf("**** VirtualBox Video Driver debugging extension ****\n"
    10589            " The following commands are supported: \n"
     
    118102    ULONG64 u64DefaultPitch;
    119103    PCSTR pExpr = args;
     104    RT_NOREF(dwProcessor, dwCurrentPc, hCurrentThread, hCurrentProcess);
    120105
    121106    /* address */
     
    203188                break;
    204189            }
    205             else if (cbRead != u64DefaultPitch)
     190            if (cbRead != u64DefaultPitch)
    206191            {
    207192                dprintf("WARNING!!! the actual number of bytes read(%d) not equal the requested size(%d), chunk(%d)\n", (UINT)cbRead, (UINT)u64DefaultPitch, (UINT)i);
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