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

This commit is contained in:
Michael Stefaniuc 2015-02-21 18:00:53 +01:00 committed by Alexandre Julliard
parent bedd444a36
commit b9d5074aaa
1 changed files with 1 additions and 1 deletions

View File

@ -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;