Stefan Dösinger : ddraw: Don' t check for NULL in GetCurrentViewport.
Module: wine Branch: master Commit: 57ab0363f5252f7d3238d3602762410fc32dde1c URL: http://source.winehq.org/git/wine.git/?a=commit;h=57ab0363f5252f7d3238d36027... Author: Stefan Dösinger <stefan(a)codeweavers.com> Date: Sat Jan 26 13:39:48 2013 +0100 ddraw: Don't check for NULL in GetCurrentViewport. --- dlls/ddraw/device.c | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/dlls/ddraw/device.c b/dlls/ddraw/device.c index eca9d69..6659735 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) {
participants (1)
-
Alexandre Julliard