* spawn.cc (spawn_guts): Fix previous patch for UNC paths.

This commit is contained in:
Corinna Vinschen 2008-07-23 10:17:04 +00:00
parent 7e1fdc9e2c
commit 02151f07e6
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2008-07-22 Corinna Vinschen <corinna@vinschen.de>
* spawn.cc (spawn_guts): Fix previous patch for UNC paths.
2008-07-22 Corinna Vinschen <corinna@vinschen.de>
* spawn.cc (spawn_guts): Remove long path prefix from win32 path

View File

@ -482,7 +482,7 @@ spawn_guts (const char *prog_arg, const char *const *argv,
{
PWCHAR r = runpath + 4;
if (r[1] != L':') /* UNC path */
r += 2;
*(r += 2) = L'\\';
runpath = r;
}
}