File tree Expand file tree Collapse file tree 1 file changed +2
-11
lines changed
Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -203,15 +203,6 @@ static void ConvertUnixSlashes(
203203 * pos = TEXT ('\\' );
204204}
205205
206- static LPTSTR FindEndOfServer (
207- IN LPTSTR pRemoteName )
208- {
209- LPTSTR pos = pRemoteName ;
210- while (* pos && * pos != TEXT (':' ))
211- pos ++ ;
212- return pos ;
213- }
214-
215206static DWORD ParseRemoteName (
216207 IN LPTSTR pRemoteName ,
217208 IN OUT PMOUNT_OPTION_LIST pOptions ,
@@ -222,10 +213,10 @@ static DWORD ParseRemoteName(
222213 LPTSTR pEnd ;
223214
224215 ConvertUnixSlashes (pRemoteName );
225- pEnd = FindEndOfServer (pRemoteName );
226216
227217 /* fail if the server name doesn't end with :\ */
228- if (* pEnd == 0 || pEnd [0 ] != TEXT (':' ) || pEnd [1 ] != TEXT ('\\' )) {
218+ pEnd = _tcsrchr (pRemoteName , TEXT (':' ));
219+ if (pEnd == NULL || pEnd [1 ] != TEXT ('\\' )) {
229220 _ftprintf (stderr , TEXT ("Failed to parse the remote path. " )
230221 TEXT ("Expected 'hostname:\\path'.\n" ));
231222 result = ERROR_BAD_ARGUMENTS ;
You can’t perform that action at this time.
0 commit comments