aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Yano <takashi.yano@nifty.ne.jp>2022-03-14 20:32:53 +0900
committerTakashi Yano <takashi.yano@nifty.ne.jp>2022-03-14 21:56:03 +0900
commit0dad577b4b487104075e921f2d2fa456f5930ff3 (patch)
tree0b91b78b4e02ae16f8bb5e332ea791c231342a00
parent7df94e3b4ff3335d21cd3069d3f73818cd44dd74 (diff)
downloadnewlib-0dad577b4b487104075e921f2d2fa456f5930ff3.zip
newlib-0dad577b4b487104075e921f2d2fa456f5930ff3.tar.gz
newlib-0dad577b4b487104075e921f2d2fa456f5930ff3.tar.bz2
Cygwin: path: Convert type of variable 'remlen' to DWORD.
- Variable remlen stores the return value of QueryDosDeviceW(), so it is better to be DWORD.
-rw-r--r--winsup/cygwin/path.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc
index eceafbb..e370843 100644
--- a/winsup/cygwin/path.cc
+++ b/winsup/cygwin/path.cc
@@ -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' */