Lines Matching refs:lpComponent
64 LPCTSTR lpComponent, LPCTSTR *lppComponentEnd, DWORD dwFlags) in IsValidFilePathComponent() argument
67 LPCTSTR lpCurrent = lpComponent; in IsValidFilePathComponent()
73 while ( !lpComponentEnd && lpCurrent && lpCurrent - lpComponent < MAX_PATH ) in IsValidFilePathComponent()
88 if ( 1 == lpCurrent - lpComponent ) in IsValidFilePathComponent()
94 else if ( 2 == lpCurrent - lpComponent && '.' == *lpComponent ) in IsValidFilePathComponent()
217 if ( lpComponentEnd - lpComponent < 1 ) in IsValidFilePathComponent()
238 LPCTSTR lpComponent = lpszPath; in IsValidFilePath() local
254 lpComponent = lpszPath + ELEMENTS_OF_ARRAY(WSTR_LONG_PATH_PREFIX_UNC) - 1; in IsValidFilePath()
260 lpComponent = lpszPath + ELEMENTS_OF_ARRAY(WSTR_LONG_PATH_PREFIX) - 1; in IsValidFilePath()
262 if ( _istalpha( lpComponent[0] ) && ':' == lpComponent[1] ) in IsValidFilePath()
264 lpComponent += 2; in IsValidFilePath()
271 lpComponent = lpszPath + 2; in IsValidFilePath()
277 lpComponent = lpszPath + 2; in IsValidFilePath()
283 fValid = IsValidFilePathComponent( lpComponent, &lpComponent, VALIDATEPATH_ALLOW_ELLIPSE ); in IsValidFilePath()
291 if ( lpComponent && !*++lpComponent ) in IsValidFilePath()
292 lpComponent = NULL; in IsValidFilePath()
294 if ( !lpComponent ) in IsValidFilePath()
299 lpComponent = lpszPath; in IsValidFilePath()
309 fValid = IsValidFilePathComponent( lpComponent, &lpComponent, 0 ); in IsValidFilePath()
314 if ( fValid && (!lpComponent || lpComponent && !*++lpComponent ) ) in IsValidFilePath()
316 lpComponent = NULL; in IsValidFilePath()
324 if ( 1 == _tcsspn( lpComponent, CHARSET_SEPARATOR ) ) in IsValidFilePath()
325 lpComponent++; in IsValidFilePath()
326 else if ( *lpComponent ) in IsValidFilePath()
333 if ( fValid && !*lpComponent ) in IsValidFilePath()
335 lpComponent = NULL; in IsValidFilePath()
342 lpComponent = lpszPath; in IsValidFilePath()
346 if ( 1 == _tcsspn( lpComponent, CHARSET_SEPARATOR ) ) in IsValidFilePath()
348 lpComponent++; in IsValidFilePath()
349 if ( !*lpComponent ) in IsValidFilePath()
350 lpComponent = NULL; in IsValidFilePath()
359 lpComponent = lpszPath; in IsValidFilePath()
363 while ( fValid && lpComponent ) in IsValidFilePath()
366 if (*lpComponent == '\\' && corrected != NULL) { in IsValidFilePath()
367 sal_Int32 i = lpComponent - lpszPath; in IsValidFilePath()
371 lpComponent = lpszPath + i; in IsValidFilePath()
374 fValid = IsValidFilePathComponent( lpComponent, &lpComponent, dwFlags ); in IsValidFilePath()
376 if ( fValid && lpComponent ) in IsValidFilePath()
378 lpComponent++; in IsValidFilePath()
382 if ( !*lpComponent ) in IsValidFilePath()
383 lpComponent = NULL; in IsValidFilePath()
391 lpComponent = lpszPath + MAX_PATH; in IsValidFilePath()
395 *lppError = lpComponent; in IsValidFilePath()