From c4c720fe8462fd4ea9444f0dd1434502a60d692c Mon Sep 17 00:00:00 2001 From: FunkyFr3sh Date: Sun, 13 Aug 2023 02:51:16 +0200 Subject: [PATCH] fix another wine issue - make sure right ddraw.dll is loaded --- config/ConfigFormUnit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/ConfigFormUnit.cpp b/config/ConfigFormUnit.cpp index 0988f86..4ca0bf7 100644 --- a/config/ConfigFormUnit.cpp +++ b/config/ConfigFormUnit.cpp @@ -618,7 +618,7 @@ void __fastcall TConfigForm::FormCreate(TObject *Sender) (void (WINAPI*)(void*, void**, void*)) GetProcAddress(ddraw, "DirectDrawCreate"); - if (dd_create) { + if (dd_create && GetProcAddress(ddraw, "GameHandlesClose")) { void *buf; dd_create(NULL, &buf, NULL);