* path.cc (mount_item::build_win32): Backslashify paths in non-managed case.

This commit is contained in:
Christopher Faylor 2003-12-26 18:26:17 +00:00
parent 91301b852f
commit 39add36fc3
3 changed files with 11 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2003-12-26 Christopher Faylor <cgf@redhat.com>
* path.cc (mount_item::build_win32): Backslashify paths in non-managed
case.
2003-12-25 Christopher Faylor <cgf@redhat.com>
* dcrt0.cc (reent_data): Reluctantly resurrect.

View File

@ -710,11 +710,10 @@ setup_handler (int sig, void *handler, struct sigaction& siga, _threadinfo *tls)
for (int i = 0; i < CALL_HANDLER_RETRY; i++)
{
__stack_t retaddr;
__stack_t *retaddr_on_stack = tls->stackptr - 1;
if (retaddr_on_stack >= tls->stack
&& (retaddr = InterlockedExchange ((LONG *) retaddr_on_stack, 0)))
if (retaddr_on_stack >= tls->stack)
{
__stack_t retaddr = InterlockedExchange ((LONG *) retaddr_on_stack, 0);
if (!retaddr)
continue;
tls->reset_exception ();

View File

@ -1280,7 +1280,10 @@ mount_item::build_win32 (char *dst, const char *src, unsigned *outflags, unsigne
else if ((!(flags & MOUNT_ENC) && isdrive (dst) && !dst[2]) || *p)
dst[n++] = '\\';
if (!*p || !(flags & MOUNT_ENC))
strcpy (dst + n, p);
{
strcpy (dst + n, p);
backslashify (dst, dst, 0);
}
else
while (*p)
{