diff options
-rw-r--r-- | protocols/Gadu-Gadu/sessions.cpp | 6 | ||||
-rw-r--r-- | protocols/Gadu-Gadu/userutils.cpp | 4 |
2 files changed, 3 insertions, 7 deletions
diff --git a/protocols/Gadu-Gadu/sessions.cpp b/protocols/Gadu-Gadu/sessions.cpp index 1f8572258a..4f83780f71 100644 --- a/protocols/Gadu-Gadu/sessions.cpp +++ b/protocols/Gadu-Gadu/sessions.cpp @@ -401,14 +401,12 @@ static INT_PTR CALLBACK gg_sessions_viewdlg(HWND hwndDlg, UINT message, WPARAM w INT_PTR GGPROTO::sessions_view(WPARAM wParam, LPARAM lParam)
{
- if (hwndSessionsDlg && IsWindow(hwndSessionsDlg))
- {
+ if (hwndSessionsDlg && IsWindow(hwndSessionsDlg)) {
ShowWindow(hwndSessionsDlg, SW_SHOWNORMAL);
SetForegroundWindow(hwndSessionsDlg);
SetFocus(hwndSessionsDlg);
}
- else
- CreateDialogParam(hInstance, MAKEINTRESOURCE(IDD_SESSIONS), NULL, gg_sessions_viewdlg, (LPARAM)this);
+ else CreateDialogParam(hInstance, MAKEINTRESOURCE(IDD_SESSIONS), NULL, gg_sessions_viewdlg, (LPARAM)this);
return 0;
}
diff --git a/protocols/Gadu-Gadu/userutils.cpp b/protocols/Gadu-Gadu/userutils.cpp index 5982d93aa7..583994f9fa 100644 --- a/protocols/Gadu-Gadu/userutils.cpp +++ b/protocols/Gadu-Gadu/userutils.cpp @@ -289,9 +289,7 @@ HANDLE GGPROTO::hookProtoEvent(const char* szEvent, GGEventFunc handler) void GGPROTO::createProtoService(const char* szService, GGServiceFunc serviceProc)
{
- char str[MAXMODULELABELLENGTH];
- mir_snprintf(str, sizeof(str), "%s%s", m_szModuleName, szService);
- CreateServiceFunctionObj(str, (MIRANDASERVICEOBJ)*( void** )&serviceProc, this);
+ CreateServiceFunctionObj(szService, (MIRANDASERVICEOBJ)*( void** )&serviceProc, this);
}
//////////////////////////////////////////////////////////
|