]> granicus.if.org Git - php/commitdiff
- fix VC6 build
authorPierre Joye <pajoye@php.net>
Thu, 27 Aug 2009 14:45:41 +0000 (14:45 +0000)
committerPierre Joye <pajoye@php.net>
Thu, 27 Aug 2009 14:45:41 +0000 (14:45 +0000)
ext/standard/link_win32.c

index bd37aab306a3af53810525c5737cc4864775f1e5..bedc781fd045cb5883be7c33353cc0f7071dbd1b 100644 (file)
@@ -54,6 +54,10 @@ TODO:
 #define VOLUME_NAME_NT 0x2
 #endif
 
+#ifndef VOLUME_NAME_DOS
+#define VOLUME_NAME_DOS 0x0
+#endif
+
 /* {{{ proto string readlink(string filename)
    Return the target of a symbolic link */
 PHP_FUNCTION(readlink)
@@ -119,7 +123,7 @@ PHP_FUNCTION(readlink)
 
        if(dwRet > 4) {
                /* Skip first 4 characters if they are "\??\" */
-               if(Path[0] == '\\' && Path[0] == '\\' && Path[1] == '?' && Path[2] == '?' && Path[3] ==  '\\') {
+               if(Path[0] == '\\' && Path[1] == '\\' && Path[2] == '?' && Path[3] ==  '\\') {
                        RETURN_STRING(Path + 4, 1);
                }
        } else {