| 232 | } |
| 233 | |
| 234 | static bool normalizeNativePath(StringSpan path, StringPath& normalizedPath) |
| 235 | { |
| 236 | #if SC_PLATFORM_WINDOWS |
| 237 | const DWORD length = |
| 238 | ::GetFullPathNameW(path.getNullTerminatedNative(), static_cast<DWORD>(StringPath::StorageCapacity), |
| 239 | normalizedPath.writableSpan().data(), nullptr); |
| 240 | return length > 0 and length < StringPath::StorageCapacity and normalizedPath.resize(length); |
| 241 | #else |
| 242 | return normalizedPath.assign(path); |
| 243 | #endif |
| 244 | } |
| 245 | |
| 246 | static void recordAttempt(StartupAttempt* attempts, size_t maxAttempts, size_t& numAttempts, const char* source, |
| 247 | StringSpan candidate) |
no test coverage detected