Author: mjansen
Date: Sun Jun 11 11:47:41 2017
New Revision: 75001
URL:
http://svn.reactos.org/svn/reactos?rev=75001&view=rev
Log:
[WIN32NT_APITEST] Do not assert on a driver without DirectX support.
Modified:
trunk/rostests/apitests/win32nt/ntdd/NtGdiDdQueryDirectDrawObject.c
Modified: trunk/rostests/apitests/win32nt/ntdd/NtGdiDdQueryDirectDrawObject.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/win32nt/ntdd/NtG…
==============================================================================
--- trunk/rostests/apitests/win32nt/ntdd/NtGdiDdQueryDirectDrawObject.c [iso-8859-1]
(original)
+++ trunk/rostests/apitests/win32nt/ntdd/NtGdiDdQueryDirectDrawObject.c [iso-8859-1] Sun
Jun 11 11:47:41 2017
@@ -68,7 +68,12 @@
/* Create ReactX handle */
hDirectDraw = (HANDLE) NtGdiDdCreateDirectDrawObject(hdc);
- ASSERT(hDirectDraw != NULL);
+ RTEST(hDirectDraw != NULL);
+ if (hDirectDraw == NULL)
+ {
+ DeleteDC(hdc);
+ return;
+ }
/* Start Test ReactX NtGdiDdQueryDirectDrawObject function */