From 1492cd4767bc9c7748455639a8eb4429a2771c34 Mon Sep 17 00:00:00 2001
From: George Hazan <george.hazan@gmail.com>
Date: Sun, 3 Mar 2013 12:25:29 +0000
Subject: added mechanism of windows subclassing, proof to dynamic plugin
 unloading

git-svn-id: http://svn.miranda-ng.org/main/trunk@3869 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
---
 plugins/SmileyAdd/src/dlgboxsubclass.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'plugins')

diff --git a/plugins/SmileyAdd/src/dlgboxsubclass.cpp b/plugins/SmileyAdd/src/dlgboxsubclass.cpp
index 1970577b48..eee8db0025 100644
--- a/plugins/SmileyAdd/src/dlgboxsubclass.cpp
+++ b/plugins/SmileyAdd/src/dlgboxsubclass.cpp
@@ -43,7 +43,7 @@ static HHOOK g_hMessageHookPre = NULL;
 static HANDLE g_hMutex = NULL;
 static HANDLE g_hHookMsgWnd = NULL;
 
-static LRESULT CALLBACK MessageDlgSubclas(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
+static LRESULT CALLBACK MessageDlgSubclass(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
 
 
 //type definitions 
@@ -344,7 +344,7 @@ static void MsgWndDetect(HWND hwndDlg, HANDLE hContact, msgData* datm)
 
 		if (msgwnd != NULL)
 		{
-			msgwnd->wpOrigWndProc = (WNDPROC)SetWindowLongPtr(hwndDlg, GWLP_WNDPROC, (LONG_PTR)MessageDlgSubclas);
+			msgwnd->wpOrigWndProc = (WNDPROC)SetWindowLongPtr(hwndDlg, GWLP_WNDPROC, (LONG_PTR)MessageDlgSubclass);
 			msgwnd->CreateSmileyButton();
 			if (hContact == NULL) SetRichCallback(msgwnd->REdit, msgwnd->hContact, true, true);
 		}
@@ -353,7 +353,7 @@ static void MsgWndDetect(HWND hwndDlg, HANDLE hContact, msgData* datm)
 
 
 //global subclass function for all dialogs
-static LRESULT CALLBACK MessageDlgSubclas(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
+static LRESULT CALLBACK MessageDlgSubclass(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
 {
 	MsgWndData* dat = IsMsgWnd(hwnd);
 	if (dat == NULL) return 0;
-- 
cgit v1.2.3