Skip to content

Commit b810f08

Browse files
committed
changed windows executable from static to dynamic
1 parent 96eef6b commit b810f08

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/internal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ mrb_execarg_fill(mrb_state *mrb, mrb_value env, mrb_value *argv, mrb_int argc, m
122122
result[1] = strdup("-c");
123123
#else
124124
shell = getenv("ComSpec");
125-
if (!shell) shell = strdup("C:\\WINDOWS\\system32\\cmd.exe");
125+
if (!shell) shell = strdup(dln_find_exe_r("cmd.exe", 0, fbuf, sizeof(fbuf)));
126126
result[1] = strdup("/c");
127127
#endif
128128
result[0] = shell;

0 commit comments

Comments
 (0)