diff options
Diffstat (limited to 'plugins/WhoUsesMyFiles/src/resizer.c')
-rw-r--r-- | plugins/WhoUsesMyFiles/src/resizer.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/plugins/WhoUsesMyFiles/src/resizer.c b/plugins/WhoUsesMyFiles/src/resizer.c index e45d10a453..4fc7906441 100644 --- a/plugins/WhoUsesMyFiles/src/resizer.c +++ b/plugins/WhoUsesMyFiles/src/resizer.c @@ -40,10 +40,12 @@ int ResizeDialog(WPARAM wParam,LPARAM lParam) int procResult;
int extendedDlg,itemCount;
- if(urd->cbSize!=sizeof(UTILRESIZEDIALOG)) return 1;
- pTemplate=(DLGTEMPLATE*)LockResource(LoadResource(urd->hInstance,FindResource(urd->hInstance,urd->lpTemplate,RT_DIALOG)));
- pTemplateEx=(START_OF_DLGTEMPLATEEX*)pTemplate;
- extendedDlg=pTemplateEx->signature==0xFFFF;
+ if(urd->cbSize != sizeof(UTILRESIZEDIALOG))
+ return 1;
+
+ pTemplate = (DLGTEMPLATE*)LockResource(LoadResource(urd->hInstance,FindResource(urd->hInstance,urd->lpTemplate,RT_DIALOG)));
+ pTemplateEx = (START_OF_DLGTEMPLATEEX*)pTemplate;
+ extendedDlg = pTemplateEx->signature == 0xFFFF;
if(extendedDlg && pTemplateEx->dlgVer!=1)
return 1;
|