comdlg32: RT_DIALOG is already an INTRESOURCE (PVS-Studio).
This commit is contained in:
parent
232390e5b8
commit
51d0345ebd
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue