(libT) #4633 fix win32 regression introduced in r13752.

This commit is contained in:
Jordan Lee 2013-01-04 19:47:01 +00:00
parent 10b96f0f12
commit 9a70ffb4ee
1 changed files with 1 additions and 1 deletions

View File

@ -1988,7 +1988,7 @@ torrentCallScript (const tr_torrent * tor, const char * script)
tr_torinf (tor, "Calling script \"%s\"", script);
#ifdef WIN32
if (spawnvpe (_P_NOWAIT, script, (const char*)cmd, env) == -1)
if (_spawnvpe (_P_NOWAIT, script, (const char*)cmd, env) == -1)
tr_torerr (tor, "error executing script \"%s\": %s", cmd[0], tr_strerror (errno));
#else
signal (SIGCHLD, onSigCHLD);