Changeset 98141 in vbox for trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/dbg/VBoxVideoWinDbg.cpp
- Timestamp:
- Jan 19, 2023 2:25:46 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/dbg/VBoxVideoWinDbg.cpp
r98103 r98141 26 26 */ 27 27 28 #define IPRT_NO_CRT_FOR_3RD_PARTY /* lazy */ 28 29 #include <iprt/win/windows.h> 29 30 #define KDEXT_64BIT 30 #include < wdbgexts.h>31 #include <iprt/win/wdbgexts.h> 31 32 32 33 #define VBOXVWD_VERSION_MAJOR 1 … … 43 44 * DLL entry point. 44 45 */ 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; 46 BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID lpReserved) 47 { 48 RT_NOREF(hInstance, dwReason, lpReserved); 49 return TRUE; 67 50 } 68 51 … … 102 85 DECLARE_API(help) 103 86 { 87 RT_NOREF(args, dwProcessor, dwCurrentPc, hCurrentThread, hCurrentProcess); 104 88 dprintf("**** VirtualBox Video Driver debugging extension ****\n" 105 89 " The following commands are supported: \n" … … 118 102 ULONG64 u64DefaultPitch; 119 103 PCSTR pExpr = args; 104 RT_NOREF(dwProcessor, dwCurrentPc, hCurrentThread, hCurrentProcess); 120 105 121 106 /* address */ … … 203 188 break; 204 189 } 205 elseif (cbRead != u64DefaultPitch)190 if (cbRead != u64DefaultPitch) 206 191 { 207 192 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.