mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-18 23:12:15 +08:00
Cygwin: path: Convert type of variable 'remlen' to DWORD.
- Variable remlen stores the return value of QueryDosDeviceW(), so it is better to be DWORD.
This commit is contained in:
parent
7df94e3b4f
commit
0dad577b4b
@ -3523,8 +3523,7 @@ restart:
|
||||
{(WCHAR) towupper (upath.Buffer[4]), L':', L'\0'};
|
||||
WCHAR remote[MAX_PATH];
|
||||
|
||||
|
||||
int remlen = QueryDosDeviceW (drive, remote, MAX_PATH);
|
||||
DWORD remlen = QueryDosDeviceW (drive, remote, MAX_PATH);
|
||||
if (remlen < 3)
|
||||
goto file_not_symlink; /* fallback */
|
||||
remlen -= 2; /* Two L'\0' */
|
||||
|
Loading…
x
Reference in New Issue
Block a user