From 1ce002432b3a5c0bb0a4c9f9eb8d399d649fe283 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 6 Jul 2012 08:31:38 +0000 Subject: - mir_core.dll moved to the core :) - plugins now obtain the fake langpack id if langpack is absent git-svn-id: http://svn.miranda-ng.org/main/trunk@787 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/modules/langpack/lpservices.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/modules/langpack') diff --git a/src/modules/langpack/lpservices.cpp b/src/modules/langpack/lpservices.cpp index b7ae5ef563..36f9e3c40b 100644 --- a/src/modules/langpack/lpservices.cpp +++ b/src/modules/langpack/lpservices.cpp @@ -43,7 +43,9 @@ static INT_PTR srvTranslateMenu(WPARAM wParam, LPARAM lParam) static INT_PTR srvRegisterLP(WPARAM wParam, LPARAM lParam) { - *(int*)wParam = Langpack_MarkPluginLoaded((PLUGININFOEX*)lParam); + PLUGININFOEX* ppi = (PLUGININFOEX*)lParam; + if (wParam && ppi) + *( int* )wParam = GetPluginFakeId(ppi->uuid, Langpack_MarkPluginLoaded(ppi)); return 0; } -- cgit v1.2.3