Another year is about to end... So we have to update these damn copyright information :P
[NeonServV5.git] / src / main.c
index 189cfd3f597a94fb9ebace10885559b624836e80..876dc70be79891645b6edfa6050b8cf84302c273 100644 (file)
@@ -1,5 +1,5 @@
-/* main.c - NeonServ v5.2
- * Copyright (C) 2011  Philipp Kreil (pk910)
+/* main.c - NeonServ v5.3
+ * Copyright (C) 2011-2012  Philipp Kreil (pk910)
  * 
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -153,7 +153,11 @@ main:
         memcpy(restart_argv, argv, argc * sizeof(char *));
         restart_argv[argc] = NULL;
         
+        #ifdef WIN32
+        execv(argv[0], (const char * const*)restart_argv);
+        #else
         execv(argv[0], restart_argv);
+        #endif
     }
     goto main;
 }