diff options
-rw-r--r-- | src/mir_app/src/icolib.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mir_app/src/icolib.cpp b/src/mir_app/src/icolib.cpp index e77cc58a59..d25898780f 100644 --- a/src/mir_app/src/icolib.cpp +++ b/src/mir_app/src/icolib.cpp @@ -552,7 +552,11 @@ MIR_APP_DLL(int) IcoLib_ReleaseIcon(HICON hIcon, bool big) return 1;
mir_cslock lck(csIconList);
- return ReleaseIconInternal(IcoLib_FindHIcon(hIcon, big), big);
+
+ // this call might change the 'big' parameter
+ // if inserted into the call of ReleaseIconInternal(), the unchanged 'big' will be passed first
+ IcolibItem *pItem = IcoLib_FindHIcon(hIcon, big);
+ return ReleaseIconInternal(pItem, big);
}
MIR_APP_DLL(int) IcoLib_Release(const char *szIconName, bool big)
|