summaryrefslogtreecommitdiff
path: root/plugins/TopToolBar/src/toolbar.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/TopToolBar/src/toolbar.cpp')
-rw-r--r--plugins/TopToolBar/src/toolbar.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/TopToolBar/src/toolbar.cpp b/plugins/TopToolBar/src/toolbar.cpp
index 650e2d03d4..f6368d6e58 100644
--- a/plugins/TopToolBar/src/toolbar.cpp
+++ b/plugins/TopToolBar/src/toolbar.cpp
@@ -546,13 +546,13 @@ int OnPluginLoad(WPARAM, LPARAM lParam)
int OnPluginUnload(WPARAM, LPARAM lParam)
{
- int hLangpack = GetPluginLangByInstance((HINSTANCE)lParam);
- if (hLangpack) {
+ int lang = GetPluginLangByInstance((HINSTANCE)lParam);
+ if (lang) {
bool bNeedUpdate = false;
mir_cslock lck(csButtonsHook);
for (int i = Buttons.getCount() - 1; i >= 0; i--)
- if (Buttons[i]->hLangpack == hLangpack) {
+ if (Buttons[i]->hLangpack == lang) {
TTBRemoveButton(Buttons[i]->id, 0);
bNeedUpdate = true;
}