From 57ab0363f5252f7d3238d3602762410fc32dde1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20D=C3=B6singer?= Date: Sat, 26 Jan 2013 13:39:48 +0100 Subject: [PATCH] ddraw: Don't check for NULL in GetCurrentViewport. --- dlls/ddraw/device.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/dlls/ddraw/device.c b/dlls/ddraw/device.c index eca9d69f759..66597350f26 100644 --- a/dlls/ddraw/device.c +++ b/dlls/ddraw/device.c @@ -1786,9 +1786,6 @@ static HRESULT WINAPI d3d_device3_GetCurrentViewport(IDirect3DDevice3 *iface, ID TRACE("iface %p, viewport %p.\n", iface, viewport); - if (!viewport) - return DDERR_INVALIDPARAMS; - wined3d_mutex_lock(); if (!device->current_viewport) {