Michael Stefaniuc : oledlg: RT_DIALOG is already an int resource ( PVS-Studio).

Alexandre Julliard julliard at wine.codeweavers.com
Mon Feb 23 09:04:43 CST 2015


Module: wine
Branch: master
Commit: b9d5074aaab1d874c329ef848d4522c225743baf
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=b9d5074aaab1d874c329ef848d4522c225743baf

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Sat Feb 21 18:00:53 2015 +0100

oledlg: RT_DIALOG is already an int resource (PVS-Studio).

---

 dlls/oledlg/pastespl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/oledlg/pastespl.c b/dlls/oledlg/pastespl.c
index f136438..4d31488 100644
--- a/dlls/oledlg/pastespl.c
+++ b/dlls/oledlg/pastespl.c
@@ -711,7 +711,7 @@ UINT WINAPI OleUIPasteSpecialW(LPOLEUIPASTESPECIALW ps)
         HRSRC hrsrc;
 
         if(name == NULL) return OLEUI_ERR_LPSZTEMPLATEINVALID;
-        hrsrc = FindResourceW(hInst, name, MAKEINTRESOURCEW(RT_DIALOG));
+        hrsrc = FindResourceW(hInst, name, (LPWSTR)RT_DIALOG);
         if(!hrsrc) return OLEUI_ERR_FINDTEMPLATEFAILURE;
         dlg_templ = LoadResource(hInst, hrsrc);
         if(!dlg_templ) return OLEUI_ERR_LOADTEMPLATEFAILURE;




More information about the wine-cvs mailing list