Signed-off-by: Zebediah Figura zfigura@codeweavers.com --- dlls/dxgi/adapter.c | 4 +--- dlls/dxgi/factory.c | 7 +------ dlls/dxgi/output.c | 7 +------ 3 files changed, 3 insertions(+), 15 deletions(-)
diff --git a/dlls/dxgi/adapter.c b/dlls/dxgi/adapter.c index 644f7e889ec..fabcb51312e 100644 --- a/dlls/dxgi/adapter.c +++ b/dlls/dxgi/adapter.c @@ -293,14 +293,12 @@ static HRESULT STDMETHODCALLTYPE dxgi_adapter_QueryVideoMemoryInfo(IWineDXGIAdap { struct dxgi_adapter *adapter = impl_from_IWineDXGIAdapter(iface); struct wined3d_adapter_identifier adapter_id; - static unsigned int once; HRESULT hr;
TRACE("iface %p, node_index %u, segment_group %#x, info %p.\n", iface, node_index, segment_group, info);
- if (!once++) - FIXME("Returning fake video memory info.\n"); + FIXME_ONCE("Returning fake video memory info.\n");
if (node_index) FIXME("Ignoring node index %u.\n", node_index); diff --git a/dlls/dxgi/factory.c b/dlls/dxgi/factory.c index 97f71bc8fc1..25dab548198 100644 --- a/dlls/dxgi/factory.c +++ b/dlls/dxgi/factory.c @@ -250,12 +250,7 @@ static HRESULT STDMETHODCALLTYPE dxgi_factory_CreateSoftwareAdapter(IWineDXGIFac
static BOOL STDMETHODCALLTYPE dxgi_factory_IsCurrent(IWineDXGIFactory *iface) { - static BOOL once = FALSE; - - if (!once++) - FIXME("iface %p stub!\n", iface); - else - WARN("iface %p stub!\n", iface); + FIXME_ONCE("iface %p stub!\n", iface);
return TRUE; } diff --git a/dlls/dxgi/output.c b/dlls/dxgi/output.c index 585f5ae5b82..71ce90c9f0b 100644 --- a/dlls/dxgi/output.c +++ b/dlls/dxgi/output.c @@ -363,12 +363,7 @@ static HRESULT STDMETHODCALLTYPE dxgi_output_FindClosestMatchingMode(IDXGIOutput
static HRESULT STDMETHODCALLTYPE dxgi_output_WaitForVBlank(IDXGIOutput6 *iface) { - static BOOL once = FALSE; - - if (!once++) - FIXME("iface %p stub!\n", iface); - else - TRACE("iface %p stub!\n", iface); + FIXME_ONCE("iface %p stub!\n", iface);
return E_NOTIMPL; }