2008-04-24 Anders Carlsson <andersca@apple.com>
[WebKit-https.git] / WebCore / html / HTMLFormElement.cpp
index d0e5879..708ff91 100644 (file)
@@ -218,7 +218,8 @@ static String pathGetFilename(const String& path)
 #elif PLATFORM(WX)
     return wxFileName(path).GetFullName();
 #elif PLATFORM(WIN_OS)
-    return String(PathFindFileName(path.charactersWithNullTermination()));
+    String copy(path);
+    return String(::PathFindFileName(copy.charactersWithNullTermination()));
 #else
     return path.substring(path.reverseFind('/') + 1);
 #endif