summaryrefslogtreecommitdiff
path: root/src/modules/langpack/lpservices.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/langpack/lpservices.cpp')
-rw-r--r--src/modules/langpack/lpservices.cpp4
1 files changed, 3 insertions, 1 deletions
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;
}