diff options
author | George Hazan <george.hazan@gmail.com> | 2013-09-25 10:58:24 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-09-25 10:58:24 +0000 |
commit | dd1460d664f7266920b07527f25f87ec8233daaf (patch) | |
tree | 3753e6fa678edf1b3d9bb020bb97e16ca75ff69d /plugins/BuddyExpectator/src | |
parent | 9ff92d1cc83e39859891a65f5ada186806cef133 (diff) |
valid options initialization
git-svn-id: http://svn.miranda-ng.org/main/trunk@6225 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/BuddyExpectator/src')
-rw-r--r-- | plugins/BuddyExpectator/src/options.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/plugins/BuddyExpectator/src/options.cpp b/plugins/BuddyExpectator/src/options.cpp index fd26b45ab7..935024308a 100644 --- a/plugins/BuddyExpectator/src/options.cpp +++ b/plugins/BuddyExpectator/src/options.cpp @@ -540,16 +540,13 @@ INT_PTR CALLBACK UserinfoDlgProc(HWND hdlg, UINT msg, WPARAM wparam, LPARAM lpar int UserinfoInit(WPARAM wparam, LPARAM lparam)
{
- if (lparam > 0)
- {
- OPTIONSDIALOGPAGE uip = {0};
- uip.cbSize = sizeof(uip);
+ if (lparam > 0) {
+ OPTIONSDIALOGPAGE uip = { sizeof(uip) };
uip.hInstance = hInst;
uip.pszTemplate = MAKEINTRESOURCEA(IDD_USERINFO);
uip.flags = ODPF_TCHAR;
uip.ptszTitle = LPGENT("Buddy Expectator");
uip.pfnDlgProc = UserinfoDlgProc;
-
UserInfo_AddPage(wparam, &uip);
}
return 0;
|