 
            Another version was !391. My main concerns would be all of manual path handling, that ideally should be handled with something we have, maybe PathCch* functions? Then error codes fixups. Since it supports wildcard patterns, maybe we can have findnext loop in all cases to get rid of "if (!wildcard && !separator)" special case.