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) towupper (upath.Buffer[4]), L':', L'\0'};
|
||||||
WCHAR remote[MAX_PATH];
|
WCHAR remote[MAX_PATH];
|
||||||
|
|
||||||
|
DWORD remlen = QueryDosDeviceW (drive, remote, MAX_PATH);
|
||||||
int remlen = QueryDosDeviceW (drive, remote, MAX_PATH);
|
|
||||||
if (remlen < 3)
|
if (remlen < 3)
|
||||||
goto file_not_symlink; /* fallback */
|
goto file_not_symlink; /* fallback */
|
||||||
remlen -= 2; /* Two L'\0' */
|
remlen -= 2; /* Two L'\0' */
|
||||||
|
|
Loading…
Reference in New Issue