mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 22:56:00 +00:00
[SHLWAPI]: On Windows 2003, tests show that strings starting with "\\?" are considered UNC, while on Windows Vista+ this is not the case anymore.
Select Win2k3 behaviour: revert r54542 (and add a note). CORE-12653 #resolve svn path=/trunk/; revision=73529
This commit is contained in:
parent
58c3357ad1
commit
aea802c64c
1 changed files with 12 additions and 2 deletions
|
@ -2197,7 +2197,12 @@ BOOL WINAPI PathIsUNCA(LPCSTR lpszPath)
|
||||||
{
|
{
|
||||||
TRACE("(%s)\n",debugstr_a(lpszPath));
|
TRACE("(%s)\n",debugstr_a(lpszPath));
|
||||||
|
|
||||||
#ifdef __REACTOS__
|
/*
|
||||||
|
* On Windows 2003, tests show that strings starting with "\\?" are
|
||||||
|
* considered UNC, while on Windows Vista+ this is not the case anymore.
|
||||||
|
*/
|
||||||
|
// #ifdef __REACTOS__
|
||||||
|
#if 0
|
||||||
if (lpszPath && (lpszPath[0]=='\\') && (lpszPath[1]=='\\') && (lpszPath[2]!='?'))
|
if (lpszPath && (lpszPath[0]=='\\') && (lpszPath[1]=='\\') && (lpszPath[2]!='?'))
|
||||||
#else
|
#else
|
||||||
if (lpszPath && (lpszPath[0]=='\\') && (lpszPath[1]=='\\'))
|
if (lpszPath && (lpszPath[0]=='\\') && (lpszPath[1]=='\\'))
|
||||||
|
@ -2215,7 +2220,12 @@ BOOL WINAPI PathIsUNCW(LPCWSTR lpszPath)
|
||||||
{
|
{
|
||||||
TRACE("(%s)\n",debugstr_w(lpszPath));
|
TRACE("(%s)\n",debugstr_w(lpszPath));
|
||||||
|
|
||||||
#ifdef __REACTOS__
|
/*
|
||||||
|
* On Windows 2003, tests show that strings starting with "\\?" are
|
||||||
|
* considered UNC, while on Windows Vista+ this is not the case anymore.
|
||||||
|
*/
|
||||||
|
// #ifdef __REACTOS__
|
||||||
|
#if 0
|
||||||
if (lpszPath && (lpszPath[0]=='\\') && (lpszPath[1]=='\\') && (lpszPath[2]!='?'))
|
if (lpszPath && (lpszPath[0]=='\\') && (lpszPath[1]=='\\') && (lpszPath[2]!='?'))
|
||||||
#else
|
#else
|
||||||
if (lpszPath && (lpszPath[0]=='\\') && (lpszPath[1]=='\\'))
|
if (lpszPath && (lpszPath[0]=='\\') && (lpszPath[1]=='\\'))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue