diff --git a/reactos/lib/sdk/crt/string/splitp.c b/reactos/lib/sdk/crt/string/splitp.c index b12cee28ce5..35509158aea 100644 --- a/reactos/lib/sdk/crt/string/splitp.c +++ b/reactos/lib/sdk/crt/string/splitp.c @@ -21,6 +21,7 @@ void _tsplitpath(const _TCHAR* path, _TCHAR* drive, _TCHAR* dir, _TCHAR* fname, if (fname) fname[0] = '\0'; if (ext) ext[0] = '\0'; +#if WINVER >= 0x600 /* Check parameter */ if (!path) { @@ -29,10 +30,13 @@ void _tsplitpath(const _TCHAR* path, _TCHAR* drive, _TCHAR* dir, _TCHAR* fname, #endif return; } +#endif +#if WINVER == 0x600 /* Skip '\\?\' prefix */ if ((path[0] == '\\') && (path[1] == '\\') && (path[2] == '?') && (path[3] == '\\')) path += 4; +#endif if (path[0] == '\0') return;