Commit 798acf15 authored by sfalken@apple.com's avatar sfalken@apple.com

Use proper string method to generate webloc string.

https://bugs.webkit.org/show_bug.cgi?id=57028
<rdar://problem/9181955>

Reviewed by Darin Adler.

* platform/win/ClipboardUtilitiesWin.cpp:
(WebCore::getWebLocData):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@81871 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 156c7b0a
2011-03-24 Steve Falkenburg <sfalken@apple.com>
Reviewed by Darin Adler.
Use proper string method to generate webloc string.
https://bugs.webkit.org/show_bug.cgi?id=57028
<rdar://problem/9181955>
* platform/win/ClipboardUtilitiesWin.cpp:
(WebCore::getWebLocData):
2011-03-24 Ben Taylor <bentaylor.solx86@gmail.com>
Reviewed by Alexey Proskuryakov.
......@@ -130,7 +130,7 @@ static bool getWebLocData(const DragDataMap* dataObject, String& url, String* ti
if (!dataObject->contains(cfHDropFormat()->cfFormat))
return false;
wcscpy(filename, dataObject->get(cfHDropFormat()->cfFormat)[0].characters());
wcscpy(filename, dataObject->get(cfHDropFormat()->cfFormat)[0].charactersWithNullTermination());
if (_wcsicmp(PathFindExtensionW(filename), L".url"))
return false;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment