summaryrefslogtreecommitdiff
path: root/plugins/WhoUsesMyFiles/src/resizer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/WhoUsesMyFiles/src/resizer.cpp')
-rw-r--r--plugins/WhoUsesMyFiles/src/resizer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/WhoUsesMyFiles/src/resizer.cpp b/plugins/WhoUsesMyFiles/src/resizer.cpp
index 17121b1e9f..a29d5e7cc2 100644
--- a/plugins/WhoUsesMyFiles/src/resizer.cpp
+++ b/plugins/WhoUsesMyFiles/src/resizer.cpp
@@ -24,7 +24,7 @@ typedef struct {
short cy;
} START_OF_DLGTEMPLATEEX;
-int ResizeDialog(WPARAM wParam,LPARAM lParam)
+int ResizeDialog(WPARAM wParam, LPARAM lParam)
{
UTILRESIZEDIALOG *urd=(UTILRESIZEDIALOG*)lParam;
HDWP hDwp;
@@ -42,7 +42,7 @@ int ResizeDialog(WPARAM wParam,LPARAM lParam)
if(urd->cbSize != sizeof(UTILRESIZEDIALOG))
return 1;
- pTemplate = (DLGTEMPLATE*)LockResource(LoadResource(urd->hInstance,FindResource(urd->hInstance,urd->lpTemplate,RT_DIALOG)));
+ pTemplate = (DLGTEMPLATE*)LockResource(LoadResource(urd->hInstance, FindResourceA(urd->hInstance, urd->lpTemplate, MAKEINTRESOURCEA(5))));
pTemplateEx = (START_OF_DLGTEMPLATEEX*)pTemplate;
extendedDlg = pTemplateEx->signature == 0xFFFF;
if(extendedDlg && pTemplateEx->dlgVer!=1)