summaryrefslogtreecommitdiff
path: root/protocols/Tlen/src/jabber_opt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Tlen/src/jabber_opt.cpp')
-rw-r--r--protocols/Tlen/src/jabber_opt.cpp14
1 files changed, 5 insertions, 9 deletions
diff --git a/protocols/Tlen/src/jabber_opt.cpp b/protocols/Tlen/src/jabber_opt.cpp
index ccdb6369d9..f73ac40f68 100644
--- a/protocols/Tlen/src/jabber_opt.cpp
+++ b/protocols/Tlen/src/jabber_opt.cpp
@@ -82,19 +82,15 @@ static void MarkChanges(int i, HWND hWnd) {
}
-int TlenOptionsInit(void *ptr, WPARAM wParam, LPARAM lParam)
+int TlenProtocol::OptionsInit(WPARAM wParam, LPARAM lParam)
{
- int i;
- TlenProtocol *proto = (TlenProtocol *)ptr;
-
- OPTIONSDIALOGPAGE odp = { 0 };
- odp.cbSize = sizeof(odp);
+ OPTIONSDIALOGPAGE odp = { sizeof(odp) };
odp.hInstance = hInst;
odp.ptszGroup = LPGENT("Network");
- odp.ptszTitle = proto->m_tszUserName;
+ odp.ptszTitle = m_tszUserName;
odp.flags = ODPF_BOLDGROUPS | ODPF_TCHAR;
- odp.dwInitParam = (LPARAM)proto;
- for (i = 0; i < SIZEOF(tabPages); i++) {
+ odp.dwInitParam = (LPARAM)this;
+ for (int i = 0; i < SIZEOF(tabPages); i++) {
odp.pszTemplate = MAKEINTRESOURCEA(tabPages[i].dlgId);
odp.pfnDlgProc = tabPages[i].dlgProc;
odp.ptszTab = tabPages[i].tabName;