mshtml: Fix pointer cast warnings on 64-bit.
authorAlexandre Julliard <julliard@winehq.org>
Thu, 8 Jan 2009 16:26:38 +0000 (17:26 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Thu, 8 Jan 2009 16:26:38 +0000 (17:26 +0100)
dlls/mshtml/protocol.c

index 84836006c4276e7243dac24805901ee569d426bd..e5e22daaeaf38123f12212a233190b9a9638ba31 100644 (file)
@@ -647,7 +647,7 @@ static HRESULT WINAPI ResProtocol_Start(IInternetProtocol *iface, LPCWSTR szUrl,
         LPWSTR endpoint = NULL;
         DWORD file_id = strtolW(url_file, &endpoint, 10);
         if(endpoint == url_file+strlenW(url_file))
-            src = FindResourceW(hdll, (LPCWSTR)file_id, (LPCWSTR)RT_HTML);
+            src = FindResourceW(hdll, MAKEINTRESOURCEW(file_id), MAKEINTRESOURCEW(RT_HTML));
 
         if(!src) {
             WARN("Could not find resource\n");