From 463ef98789a3006506b0abd135168d91a391bc52 Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Mon, 28 Jun 2021 13:03:07 -0700 Subject: [PATCH] Fixed DllMain --- IDEHelper/Compiler/BfCompiler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IDEHelper/Compiler/BfCompiler.cpp b/IDEHelper/Compiler/BfCompiler.cpp index 732d327a..c5fbed16 100644 --- a/IDEHelper/Compiler/BfCompiler.cpp +++ b/IDEHelper/Compiler/BfCompiler.cpp @@ -1674,7 +1674,7 @@ void BfCompiler::CreateVData(BfVDataModule* bfModule) bool mainHasArgs = (targetType != BfTargetType_BeefLib_DynamicLib) && (targetType != BfTargetType_BeefLib_StaticLib) && (mOptions.mPlatformType != BfPlatformType_Wasm); - bool mainHasRet = (targetType != BfTargetType_BeefLib_DynamicLib) && (targetType != BfTargetType_BeefLib_StaticLib); + bool mainHasRet = ((targetType != BfTargetType_BeefLib_DynamicLib) && (targetType != BfTargetType_BeefLib_StaticLib)) || (isDllMain); // Generate "main" if (!IsHotCompile())