Commit 51d0345e authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

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

parent 232390e5
...@@ -3817,16 +3817,16 @@ static void *pagesetup_get_template(pagesetup_data *data) ...@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment