VirtualBox

Changeset 40587 in vbox for trunk/src/VBox/Additions/WINNT


Ignore:
Timestamp:
Mar 23, 2012 9:08:44 AM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
76988
Message:

wined3d/xpdm: gracefully handle missing msd3d dll

Location:
trunk/src/VBox/Additions/WINNT/Graphics/Wine/switcher
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Wine/switcher/d3d8_main.c

    r28800 r40587  
    2525typedef HRESULT (WINAPI *ValidatePixelShaderProc)(DWORD* pixelshader, DWORD* reserved1, BOOL bool, DWORD* toto);
    2626typedef HRESULT (WINAPI *ValidateVertexShaderProc)(DWORD* vertexshader, DWORD* reserved1, DWORD* reserved2, BOOL bool, DWORD* toto);
     27
     28static HRESULT WINAPI vboxD3D8GetSWInfoStub(void)
     29{
     30    return E_FAIL;
     31}
     32
     33static void WINAPI vboxDebugSetMuteStub(void)
     34{
     35
     36}
     37
     38static IDirect3D8* WINAPI vboxDirect3DCreate8Stub(UINT SDKVersion)
     39{
     40    return NULL;
     41}
     42
     43static HRESULT WINAPI vboxValidatePixelShaderStub(DWORD* pixelshader, DWORD* reserved1, BOOL bool, DWORD* toto)
     44{
     45    return E_FAIL;
     46}
     47
     48static HRESULT WINAPI vboxValidateVertexShaderStub(DWORD* vertexshader, DWORD* reserved1, DWORD* reserved2, BOOL bool, DWORD* toto)
     49{
     50    return E_FAIL;
     51}
    2752
    2853typedef struct _D3D8ExTag
  • trunk/src/VBox/Additions/WINNT/Graphics/Wine/switcher/d3d9_main.c

    r35319 r40587  
    2323typedef IDirect3D9* (WINAPI *Direct3DCreate9Proc)(UINT SDKVersion);
    2424typedef HRESULT (WINAPI *Direct3DCreate9ExProc)(UINT SDKVersion, IDirect3D9Ex **direct3d9ex);
     25/* @todo: this does not return a value according to MSDN */
    2526typedef void* (WINAPI *Direct3DShaderValidatorCreate9Proc)(void);
    2627typedef int (WINAPI *D3DPERF_BeginEventProc)(D3DCOLOR color, LPCWSTR name);
     
    3132typedef void (WINAPI *D3DPERF_SetMarkerProc)(D3DCOLOR color, LPCWSTR name);
    3233typedef void (WINAPI *D3DPERF_SetRegionProc)(D3DCOLOR color, LPCWSTR name);
     34
     35static void WINAPI vboxDebugSetMuteStub(void)
     36{
     37}
     38
     39static IDirect3D9* WINAPI vboxDirect3DCreate9Stub(UINT SDKVersion)
     40{
     41    return NULL;
     42}
     43
     44static HRESULT WINAPI vboxDirect3DCreate9ExStub(UINT SDKVersion, IDirect3D9Ex **direct3d9ex)
     45{
     46    if (direct3d9ex)
     47        *direct3d9ex = NULL;
     48    return E_FAIL;
     49}
     50
     51static void* WINAPI vboxDirect3DShaderValidatorCreate9Stub(void)
     52{
     53    return NULL;
     54}
     55
     56static int WINAPI vboxD3DPERF_BeginEventStub(D3DCOLOR color, LPCWSTR name)
     57{
     58    return 0;
     59}
     60
     61static int WINAPI vboxD3DPERF_EndEventStub(void)
     62{
     63    return 0;
     64}
     65
     66static DWORD WINAPI vboxD3DPERF_GetStatusStub(void)
     67{
     68    return 0;
     69}
     70
     71static void WINAPI vboxD3DPERF_SetOptionsStub(DWORD options)
     72{
     73
     74}
     75
     76static BOOL WINAPI vboxD3DPERF_QueryRepeatFrameStub(void)
     77{
     78    return 0;
     79}
     80
     81static void WINAPI vboxD3DPERF_SetMarkerStub(D3DCOLOR color, LPCWSTR name)
     82{
     83
     84}
     85
     86static void WINAPI vboxD3DPERF_SetRegionStub(D3DCOLOR color, LPCWSTR name)
     87{
     88
     89}
     90
    3391
    3492typedef struct _D3D9ExTag
  • trunk/src/VBox/Additions/WINNT/Graphics/Wine/switcher/switcher.h

    r28800 r40587  
    2323
    2424#define SW_FILLPROC(dispatch, hdll, name) \
    25     dispatch.p##name = (name##Proc) GetProcAddress(hdll, #name);
     25    dispatch.p##name = ((hdll) != NULL) ? (name##Proc) GetProcAddress((hdll), #name) : vbox##name##Stub;
    2626
    2727#define SW_DISPINIT(dispatch)                                   \
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette