From 79b6046813b7aa2a8cb175b35b5163e04a0d04e5 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Fri, 24 Nov 2023 11:10:28 -0600 Subject: [PATCH] [nostalgia/studio] Fix main argc and argv for Windows --- src/nostalgia/studio/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/nostalgia/studio/main.cpp b/src/nostalgia/studio/main.cpp index 0b0b6964..c371a379 100644 --- a/src/nostalgia/studio/main.cpp +++ b/src/nostalgia/studio/main.cpp @@ -8,7 +8,9 @@ #include #ifdef _WIN32 -int WinMain(int argc, const char **argv) { +int WinMain() { + auto const argc = __argc; + auto const argv = const_cast(__argv); #else int main(int argc, const char **argv) { #endif