mirror of
https://github.com/reactos/reactos.git
synced 2025-01-01 03:54:02 +00:00
adding a NULL test for NtGdiDdQueryDirectDrawObject
svn path=/trunk/; revision=25815
This commit is contained in:
parent
9e44309042
commit
11e0777755
1 changed files with 39 additions and 10 deletions
|
@ -86,19 +86,36 @@ test_NtGdiDdQueryDirectDrawObject( HANDLE hDirectDrawLocal)
|
||||||
int fails=0;
|
int fails=0;
|
||||||
BOOL retValue=FALSE;
|
BOOL retValue=FALSE;
|
||||||
|
|
||||||
DD_HALINFO *pHalInfo;
|
DD_HALINFO *pHalInfo = NULL;
|
||||||
DWORD *pCallBackFlags;
|
DWORD *pCallBackFlags = NULL;
|
||||||
LPD3DNTHAL_CALLBACKS puD3dCallbacks;
|
LPD3DNTHAL_CALLBACKS puD3dCallbacks = NULL;
|
||||||
LPD3DNTHAL_GLOBALDRIVERDATA puD3dDriverData;
|
LPD3DNTHAL_GLOBALDRIVERDATA puD3dDriverData = NULL;
|
||||||
PDD_D3DBUFCALLBACKS puD3dBufferCallbacks;
|
PDD_D3DBUFCALLBACKS puD3dBufferCallbacks = NULL;
|
||||||
LPDDSURFACEDESC puD3dTextureFormats;
|
LPDDSURFACEDESC puD3dTextureFormats = NULL;
|
||||||
DWORD *puNumHeaps;
|
DWORD *puNumHeaps = NULL;
|
||||||
VIDEOMEMORY *puvmList;
|
VIDEOMEMORY *puvmList = NULL;
|
||||||
DWORD *puNumFourCC;
|
DWORD *puNumFourCC = NULL;
|
||||||
DWORD *puFourCC;
|
DWORD *puFourCC = NULL;
|
||||||
|
|
||||||
printf("Start testing of NtGdiDdQueryDirectDrawObject\n");
|
printf("Start testing of NtGdiDdQueryDirectDrawObject\n");
|
||||||
|
|
||||||
|
/* testing NULL */
|
||||||
|
retValue = sysNtGdiDdQueryDirectDrawObject( NULL, pHalInfo,
|
||||||
|
pCallBackFlags, puD3dCallbacks,
|
||||||
|
puD3dDriverData, puD3dBufferCallbacks,
|
||||||
|
puD3dTextureFormats, puNumHeaps,
|
||||||
|
puvmList, puNumFourCC,
|
||||||
|
puFourCC);
|
||||||
|
testing_noteq(retValue,NULL,fails,"1. NtGdiDdQueryDirectDrawObject(NULL, ...);\0");
|
||||||
|
testing_noteq(pHalInfo,NULL,fails,"2. NtGdiDdQueryDirectDrawObject(NULL, ...);\0");
|
||||||
|
testing_noteq(pCallBackFlags,NULL,fails,"3. NtGdiDdQueryDirectDrawObject(NULL, ...);\0");
|
||||||
|
testing_noteq(puD3dCallbacks,NULL,fails,"4. NtGdiDdQueryDirectDrawObject(NULL, ...);\0");
|
||||||
|
testing_noteq(puD3dDriverData,NULL,fails,"5. NtGdiDdQueryDirectDrawObject(NULL, ...);\0");
|
||||||
|
testing_noteq(puD3dBufferCallbacks,NULL,fails,"6. NtGdiDdQueryDirectDrawObject(NULL, ...);\0");
|
||||||
|
testing_noteq(puD3dTextureFormats,NULL,fails,"7. NtGdiDdQueryDirectDrawObject(NULL, ...);\0");
|
||||||
|
testing_noteq(puNumFourCC,NULL,fails,"8. NtGdiDdQueryDirectDrawObject(NULL, ...);\0");
|
||||||
|
testing_noteq(puFourCC,NULL,fails,"9. NtGdiDdQueryDirectDrawObject(NULL, ...);\0");
|
||||||
|
|
||||||
retValue = sysNtGdiDdQueryDirectDrawObject( hDirectDrawLocal, pHalInfo,
|
retValue = sysNtGdiDdQueryDirectDrawObject( hDirectDrawLocal, pHalInfo,
|
||||||
pCallBackFlags, puD3dCallbacks,
|
pCallBackFlags, puD3dCallbacks,
|
||||||
puD3dDriverData, puD3dBufferCallbacks,
|
puD3dDriverData, puD3dBufferCallbacks,
|
||||||
|
@ -106,6 +123,18 @@ test_NtGdiDdQueryDirectDrawObject( HANDLE hDirectDrawLocal)
|
||||||
puvmList, puNumFourCC,
|
puvmList, puNumFourCC,
|
||||||
puFourCC);
|
puFourCC);
|
||||||
|
|
||||||
|
testing_noteq(retValue,NULL,fails,"1. NtGdiDdQueryDirectDrawObject(hDirectDrawLocal, NULL, ...);\0");
|
||||||
|
testing_noteq(pHalInfo,NULL,fails,"2. NtGdiDdQueryDirectDrawObject(hDirectDrawLocal, NULL, ...);\0");
|
||||||
|
testing_noteq(pCallBackFlags,NULL,fails,"3. NtGdiDdQueryDirectDrawObject(hDirectDrawLocal, NULL, ...);\0");
|
||||||
|
testing_noteq(puD3dCallbacks,NULL,fails,"4. NtGdiDdQueryDirectDrawObject(hDirectDrawLocal, NULL, ...);\0");
|
||||||
|
testing_noteq(puD3dDriverData,NULL,fails,"5. NtGdiDdQueryDirectDrawObject(hDirectDrawLocal, NULL, ...);\0");
|
||||||
|
testing_noteq(puD3dBufferCallbacks,NULL,fails,"6. NtGdiDdQueryDirectDrawObject(hDirectDrawLocal, NULL, ...);\0");
|
||||||
|
testing_noteq(puD3dTextureFormats,NULL,fails,"7. NtGdiDdQueryDirectDrawObject(hDirectDrawLocal, NULL, ...);\0");
|
||||||
|
testing_noteq(puNumFourCC,NULL,fails,"8. NtGdiDdQueryDirectDrawObject(hDirectDrawLocal, NULL, ...);\0");
|
||||||
|
testing_noteq(puFourCC,NULL,fails,"9. NtGdiDdQueryDirectDrawObject(hDirectDrawLocal, NULL, ...);\0");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
show_status(fails, "NtGdiDdQueryDirectDrawObject\0");
|
show_status(fails, "NtGdiDdQueryDirectDrawObject\0");
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue