diff options
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -1364,6 +1364,10 @@ ruby_options(argc, argv) { int state; +#ifdef _WIN32 + argc = rb_w32_cmdvector(GetCommandLine(), &argv); +#endif + Init_stack((void*)&state); PUSH_TAG(PROT_NONE); if ((state = EXEC_TAG()) == 0) { @@ -1375,6 +1379,10 @@ ruby_options(argc, argv) exit(error_handle(state)); } POP_TAG(); + +#ifdef _WIN32_WCE + wce_FreeCommandLine(); +#endif } void rb_exec_end_proc _((void)); |