Skip to content

Commit

Permalink
Variables should also be set under Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
MasterDuke17 committed Jan 6, 2020
1 parent 8c4244f commit 829f4cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vm/moar/runner/main.c
Expand Up @@ -281,7 +281,7 @@ int wmain(int argc, wchar_t *wargv[])
/* The +1 is the trailing \0 terminating the string. */
exec_dir_path_temp = (char*)malloc(exec_path_size + 1);
memcpy(exec_dir_path_temp, exec_path, exec_path_size + 1);
#if !(defined(STATIC_NQP_HOME) && defined(STATIC_RAKUDO_HOME))
#if !(defined(STATIC_NQP_HOME) && defined(STATIC_RAKUDO_HOME)) || defined(_WIN32)
#ifdef _WIN32
PathRemoveFileSpecA(exec_dir_path_temp);
exec_dir_path_size = strlen(exec_dir_path_temp);
Expand Down

0 comments on commit 829f4cc

Please sign in to comment.