dlls/kernel32/path.c
/***********************************************************************
 *           contains_pathW
 *
 * Check if the file name contains a path; helper for SearchPathW.
 * A relative path is not considered a path unless it starts with ./ or ../
 */
contains_pathW
Check if the file name contains a path; helper for SearchPathW.
A relative path is not considered a path unless it starts with ./ or
contains_pathW Check if the file name contains a path ; helper for SearchPathW . A relative path is not considered a path unless it starts with . / or
static inline BOOL contains_pathW (LPCWSTR name)
{
    if (RtlDetermineDosPathNameType_U( name ) != RELATIVE_PATH) return TRUE;
    if (name[0] != '.') return FALSE;
    if (name[1] == '/' || name[1] == '\\') return TRUE;
    return (name[1] == '.' && (name[2] == '/' || name[2] == '\\'));
}
static inline BOOL contains_pathW ( LPCWSTR name ) { if ( RtlDetermineDosPathNameType_U ( name ) != RELATIVE_PATH ) return TRUE ; if ( name [ 0 ] != ' ' ) return FALSE ; if ( name [ 1 ] == ' ' || name [ 1 ] == ' \\ ' ) return TRUE ; return ( name [ 1 ] == ' ' && ( name [ 2 ] == ' ' || name [ 2 ] == ' \\ ' ) ) ; }
contains_pathW
 Check if the file name contains a path; helper for SearchPathW.
contains_pathW Check if the file name contains a path ; helper for SearchPathW .