]> git.sesse.net Git - vlc/commitdiff
Fix if statement
authorChristophe Mutricy <xtophe@videolan.org>
Thu, 6 Apr 2006 09:04:42 +0000 (09:04 +0000)
committerChristophe Mutricy <xtophe@videolan.org>
Thu, 6 Apr 2006 09:04:42 +0000 (09:04 +0000)
src/misc/unicode.c

index c3c8d9f4611919f53ffe58fb8392f69f74e18146..e71f99109bd84b1943545d01f18ff7a86f8f9085 100644 (file)
@@ -375,7 +375,8 @@ int utf8_mkdir( const char *dirname )
     {
         if( GetLastError( ) == ERROR_ALREADY_EXISTS )
             errno = EEXIST;
-        errno = ENOENT;
+        else
+            errno = ENOENT;
         return -1;
     }
     return 0;