summaryrefslogtreecommitdiff
path: root/core/src
diff options
context:
space:
mode:
authorruki <[email protected]>2017-03-15 16:12:36 +0800
committerruki <[email protected]>2017-03-15 16:12:36 +0800
commit645779a4239069b504a530b5667b80cf8f7f5f9a (patch)
treefd847a21cb93a743ae90242d2a2bc3d579ce136b /core/src
parent84a1ac1d297ff039e600a4ea2ecb9f122aac5846 (diff)
modify vs201x project plugin
Diffstat (limited to 'core/src')
-rw-r--r--[-rwxr-xr-x]core/src/xmake/os/argv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/xmake/os/argv.c b/core/src/xmake/os/argv.c
index 359c94331..0954c0da2 100755..100644
--- a/core/src/xmake/os/argv.c
+++ b/core/src/xmake/os/argv.c
@@ -71,7 +71,7 @@ tb_int_t xm_os_argv(lua_State* lua)
// leave quote?
else if ((s == 2 && ch == '\"') || (s == 1 && ch == '\'')) s = 0;
// escape charactor?
- else if (!escape && ch == '\\') escape = 1;
+ else if (!escape && ch == '\\' && p[1] != '\\') escape = 1;
// is argument end with ' '?
else if (!s && tb_isspace(ch))
{