diff options
Diffstat (limited to 'win32/win32.c')
-rw-r--r-- | win32/win32.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/win32/win32.c b/win32/win32.c index 1441a25c2b..7fa962f15b 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -1213,7 +1213,7 @@ NtMakeCmdVector (char *cmdline, char ***vec, int InputCmd) // we can remove them. // - if (InputCmd && (base[0] == '\"' && base[len-1] == '\"')) { + if (InputCmd && !instring && (base[0] == '\"' && base[len-1] == '\"')) { char *p; base++; len -= 2; @@ -1225,7 +1225,7 @@ NtMakeCmdVector (char *cmdline, char ***vec, int InputCmd) } } } - else if (InputCmd && (base[0] == '\'' && base[len-1] == '\'')) { + else if (InputCmd && !instring && (base[0] == '\'' && base[len-1] == '\'')) { base++; len -= 2; } @@ -1562,7 +1562,8 @@ typedef struct { #endif } ioinfo; -#if !defined _CRTIMP +#if !defined _CRTIMP || defined __MINGW32__ +#undef _CRTIMP #define _CRTIMP __declspec(dllimport) #endif |