The R Project SVN R

Rev

Rev 77458 | Rev 77460 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 77458 Rev 77459
Line 559... Line 559...
559
    int strip = 0;
559
    int strip = 0;
560
    if (len < 4 || wcsncmp(L"\\\\?\\", res, 4))
560
    if (len < 4 || wcsncmp(L"\\\\?\\", res, 4))
561
	/* res should start with \\?\ */
561
	/* res should start with \\?\ */
562
	return FALSE;
562
	return FALSE;
563
    
563
    
564
    if (len > 8 && !wcsncmp(L"UNC\\", res+4, 4))
564
    if (len > 8 && !wcsncmp(L"UNC\\", res+4, 4)) {
565
	/* UNC path \\?\UNC */
565
	/* UNC path \\?\UNC */
-
 
566
	res[6] = L'\\';
566
	strip = 7;	
567
	strip = 6;
567
    else if (len >= 6 && Ri18n_iswctype(res[4], Ri18n_wctype("alpha"))
568
    } else if (len >= 6 && Ri18n_iswctype(res[4], Ri18n_wctype("alpha"))
568
	     && res[5] == L':' && res[6] == L'\\')
569
	     && res[5] == L':' && res[6] == L'\\')
569
	/* \\?\D: */
570
	/* \\?\D: */
570
	strip = 4;
571
	strip = 4;
571
    else
572
    else
572
	return FALSE;
573
	return FALSE;