2008-04-24 Anders Carlsson <andersca@apple.com>
authorandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 24 Apr 2008 21:45:31 +0000 (21:45 +0000)
committerandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 24 Apr 2008 21:45:31 +0000 (21:45 +0000)
        Windows build fix.

        * html/HTMLFormElement.cpp:
        (WebCore::pathGetFilename):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@32517 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog
WebCore/html/HTMLFormElement.cpp

index a68dd78..7d63f97 100644 (file)
@@ -1,5 +1,12 @@
 2008-04-24  Anders Carlsson  <andersca@apple.com>
 
+        Windows build fix.
+        
+        * html/HTMLFormElement.cpp:
+        (WebCore::pathGetFilename):
+
+2008-04-24  Anders Carlsson  <andersca@apple.com>
+
         Don't crash when the string is empty.
         
         * html/HTMLMediaElement.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