Attempt to fix Windows build after r205090.
authorpvollan@apple.com <pvollan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 29 Aug 2016 11:02:53 +0000 (11:02 +0000)
committerpvollan@apple.com <pvollan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 29 Aug 2016 11:02:53 +0000 (11:02 +0000)
Unreviewed build fix.

* DumpRenderTree/win/DRTDataObject.cpp:
(cfFileNameWFormat):
(cfUrlWFormat):

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

Tools/ChangeLog
Tools/DumpRenderTree/win/DRTDataObject.cpp

index 935ba2e..45a3629 100644 (file)
@@ -1,3 +1,13 @@
+2016-08-29  Per Arne Vollan  <pvollan@apple.com>
+
+        Attempt to fix Windows build after r205090.
+
+        Unreviewed build fix.
+
+        * DumpRenderTree/win/DRTDataObject.cpp:
+        (cfFileNameWFormat):
+        (cfUrlWFormat):
+
 2016-08-27  Alex Christensen  <achristensen@webkit.org>
 
         URLParser should parse relative URLs
index d07b168..87461c1 100644 (file)
@@ -36,14 +36,14 @@ FORMATETC* cfHDropFormat()
 FORMATETC* cfFileNameWFormat()
 {
     static UINT cf = RegisterClipboardFormat(L"FileNameW");
-    static FORMATETC urlFormat = {cf, 0, DVASPECT_CONTENT, -1, TYMED_HGLOBAL};
+    static FORMATETC urlFormat = {static_cast<CLIPFORMAT>(cf), 0, DVASPECT_CONTENT, -1, TYMED_HGLOBAL};
     return &urlFormat;
 }
 
 FORMATETC* cfUrlWFormat()
 {
     static UINT cf = RegisterClipboardFormat(L"UniformResourceLocatorW");
-    static FORMATETC urlFormat = {cf, 0, DVASPECT_CONTENT, -1, TYMED_HGLOBAL};
+    static FORMATETC urlFormat = {static_cast<CLIPFORMAT>(cf), 0, DVASPECT_CONTENT, -1, TYMED_HGLOBAL};
     return &urlFormat;
 }