comdlg32: RT_DIALOG is already an INTRESOURCE (PVS-Studio).

This commit is contained in:
Michael Stefaniuc 2014-11-27 11:28:42 +01:00 committed by Alexandre Julliard
parent 232390e5b8
commit 51d0345ebd
1 changed files with 3 additions and 3 deletions

View File

@ -3817,16 +3817,16 @@ static void *pagesetup_get_template(pagesetup_data *data)
{ {
if(data->unicode) if(data->unicode)
res = FindResourceW(data->u.dlgw->hInstance, res = FindResourceW(data->u.dlgw->hInstance,
data->u.dlgw->lpPageSetupTemplateName, MAKEINTRESOURCEW(RT_DIALOG)); data->u.dlgw->lpPageSetupTemplateName, (LPWSTR)RT_DIALOG);
else else
res = FindResourceA(data->u.dlga->hInstance, res = FindResourceA(data->u.dlga->hInstance,
data->u.dlga->lpPageSetupTemplateName, MAKEINTRESOURCEA(RT_DIALOG)); data->u.dlga->lpPageSetupTemplateName, (LPSTR)RT_DIALOG);
tmpl_handle = LoadResource(data->u.dlgw->hInstance, res); tmpl_handle = LoadResource(data->u.dlgw->hInstance, res);
} }
else else
{ {
res = FindResourceW(COMDLG32_hInstance, MAKEINTRESOURCEW(PAGESETUPDLGORD), res = FindResourceW(COMDLG32_hInstance, MAKEINTRESOURCEW(PAGESETUPDLGORD),
MAKEINTRESOURCEW(RT_DIALOG)); (LPWSTR)RT_DIALOG);
tmpl_handle = LoadResource(COMDLG32_hInstance, res); tmpl_handle = LoadResource(COMDLG32_hInstance, res);
} }
return LockResource(tmpl_handle); return LockResource(tmpl_handle);