4
0
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:
Takashi Yano 2022-03-14 20:32:53 +09:00
parent 7df94e3b4f
commit 0dad577b4b

View File

@ -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' */