Skip to content

Commit d3b24f1

Browse files
author
Adrien GIVRY
committed
Fixing Release not building due to no argc, argv with WinMain
1 parent c3afec2 commit d3b24f1

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

  • Sources/Overload/OvEditor/src/OvEditor

Sources/Overload/OvEditor/src/OvEditor/Main.cpp

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,16 @@ void UpdateWorkingDirectory(const std::string& p_executablePath)
2727
}
2828
}
2929

30-
#ifdef _DEBUG
31-
int main(int argc, char** argv)
32-
#else
30+
int main(int argc, char** argv);
31+
32+
#ifndef _DEBUG
3333
INT WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR lpCmdLine, INT nCmdShow)
34+
{
35+
main(__argc, __argv);
36+
}
3437
#endif
38+
39+
int main(int argc, char** argv)
3540
{
3641
UpdateWorkingDirectory(argv[0]);
3742

0 commit comments

Comments
 (0)