diff options
Diffstat (limited to 'TSRM')
-rw-r--r-- | TSRM/tsrm_win32.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/TSRM/tsrm_win32.c b/TSRM/tsrm_win32.c index 589ee1e1ef..58216efa9d 100644 --- a/TSRM/tsrm_win32.c +++ b/TSRM/tsrm_win32.c @@ -318,7 +318,7 @@ TSRM_API FILE *popen_ex(const char *command, const char *type, const char *cwd, char *ptype = (char *)type; HANDLE thread_token = NULL; HANDLE token_user = NULL; - BOOL asuser = FALSE; + BOOL asuser = TRUE; TSRMLS_FETCH(); @@ -380,7 +380,6 @@ TSRM_API FILE *popen_ex(const char *command, const char *type, const char *cwd, if (err == ERROR_NO_TOKEN) { asuser = FALSE; } - } cmd = (char*)malloc(strlen(command)+strlen(TWG(comspec))+sizeof(" /c ")+2); |