Commit 34c9f9fb authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

Check for NULL before doing IsEqualGUID().

parent aaa78f9c
......@@ -316,9 +316,11 @@ HRESULT WINAPI DirectDrawCreate(
ddraw_drivers[drvindex] = NULL; /* mark this one as unusable */
}
if (IsEqualGUID( &IID_IDirectDraw2, lpGUID ) ||
IsEqualGUID( &IID_IDirectDraw4, lpGUID ) ||
IsEqualGUID( &IID_IDirectDraw7, lpGUID )
if (lpGUID &&
(IsEqualGUID( &IID_IDirectDraw2, lpGUID ) ||
IsEqualGUID( &IID_IDirectDraw4, lpGUID ) ||
IsEqualGUID( &IID_IDirectDraw7, lpGUID )
)
) {
LPVOID x;
ret = IDirectDraw_QueryInterface(*lplpDD,lpGUID,&x);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment