diff --git a/examples/gui_api_ex.cpp b/examples/gui_api_ex.cpp index c433089b2..802de41af 100644 --- a/examples/gui_api_ex.cpp +++ b/examples/gui_api_ex.cpp @@ -196,6 +196,8 @@ int main() // wait until the user closes this window before we let the program // terminate. my_window.wait_until_closed(); + + return 0; } // ---------------------------------------------------------------------------- @@ -216,8 +218,7 @@ int WINAPI WinMain ( int ) { - main(); - return 0; + return main(); } #endif