From 7d50be74c256b5be785ed7f7581504cee4344361 Mon Sep 17 00:00:00 2001 From: anzz1 Date: Thu, 17 Mar 2022 23:57:19 +0200 Subject: [PATCH] correct return type E_FAIL -> NULL --- source/dllmain.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/dllmain.cpp b/source/dllmain.cpp index 3b77866..22320a4 100644 --- a/source/dllmain.cpp +++ b/source/dllmain.cpp @@ -447,7 +447,7 @@ int WINAPI Direct3D9EnableMaximizedWindowedModeShim(BOOL mEnable) { if (!m_pDirect3D9EnableMaximizedWindowedModeShim) { - return E_FAIL; + return NULL; } return m_pDirect3D9EnableMaximizedWindowedModeShim(mEnable);