2004-09-05 Pierre Humblet <pierre.humblet@ieee.org>
* cygheap.h (cwdstuff::drive_length): New member. (cwdstuff::get_drive): New method. * path.cc (normalize_win32_path): Simplify by using cwdstuff::get_drive. (mount_info::conv_to_win32_path): Use cwdstuff::get_drive as default for /. (cwdstuff::set): Initialize drive_length.
This commit is contained in:
@ -216,9 +216,16 @@ struct cwdstuff
|
||||
char *posix;
|
||||
char *win32;
|
||||
DWORD hash;
|
||||
DWORD drive_length;
|
||||
muto *cwd_lock;
|
||||
char *get (char *, int = 1, int = 0, unsigned = CYG_MAX_PATH);
|
||||
DWORD get_hash ();
|
||||
DWORD get_drive (char * dst)
|
||||
{
|
||||
get_initial ();
|
||||
memcpy (dst, win32, drive_length);
|
||||
return drive_length;
|
||||
}
|
||||
void init ();
|
||||
void fixup_after_exec (char *, char *, DWORD);
|
||||
bool get_initial ();
|
||||
|
Reference in New Issue
Block a user