From 01454e328e1f100a53134034bd0596c8f90166ea Mon Sep 17 00:00:00 2001 From: Anders Jenbo Date: Thu, 15 Oct 2020 00:05:41 +0200 Subject: [PATCH] Clean up dx_DirectDrawCreate --- Source/dx.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/dx.cpp b/Source/dx.cpp index 197d1d1ca..654930140 100644 --- a/Source/dx.cpp +++ b/Source/dx.cpp @@ -80,9 +80,9 @@ static HRESULT dx_DirectDrawCreate(LPGUID guid, LPDIRECTDRAW *lplpDD, LPUNKNOWN if (ghDiabMod == NULL) { ghDiabMod = LoadLibrary("ddraw.dll"); - if (ghDiabMod == NULL) { - ErrDlg(IDD_DIALOG4, GetLastError(), "C:\\Src\\Diablo\\Source\\dx.cpp", 122); - } + } + if (ghDiabMod == NULL) { + ErrDlg(IDD_DIALOG4, GetLastError(), "C:\\Src\\Diablo\\Source\\dx.cpp", 122); } DirectDrawCreate = (HRESULT(WINAPI *)(LPGUID, LPDIRECTDRAW *, LPUNKNOWN))GetProcAddress(ghDiabMod, "DirectDrawCreate");