summaryrefslogtreecommitdiff
path: root/src/mir_app
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2022-05-29 14:32:17 +0300
committerGeorge Hazan <ghazan@miranda.im>2022-05-29 14:32:17 +0300
commit878274e008cafa7e1a9bd38297f4d2eed4bdebba (patch)
treee1c884c618c88f638b4e2e6a4419482c2ada36a1 /src/mir_app
parentdd0cdbf2f0eb73b8ab481a92e6ff6415f9785531 (diff)
code cleaning
Diffstat (limited to 'src/mir_app')
-rw-r--r--src/mir_app/src/IcoLib.h2
-rw-r--r--src/mir_app/src/skin2opts.cpp5
2 files changed, 3 insertions, 4 deletions
diff --git a/src/mir_app/src/IcoLib.h b/src/mir_app/src/IcoLib.h
index 44a54fd168..385d1acfc4 100644
--- a/src/mir_app/src/IcoLib.h
+++ b/src/mir_app/src/IcoLib.h
@@ -80,7 +80,7 @@ public:
struct IcolibItem : public MZeroedObject
{
char* name;
- uint32_t signature = ICOLIB_MAGIC;
+ uint32_t signature = ICOLIB_MAGIC;
SectionItem* section;
int orderID;
wchar_t* description;
diff --git a/src/mir_app/src/skin2opts.cpp b/src/mir_app/src/skin2opts.cpp
index d22ef5e538..e96d8186b5 100644
--- a/src/mir_app/src/skin2opts.cpp
+++ b/src/mir_app/src/skin2opts.cpp
@@ -301,11 +301,10 @@ static void LoadSectionIcons(wchar_t *filename, SectionItem* sectionActive)
if (!hIcon)
continue;
- replaceStrW(it->temp_file, nullptr);
SafeDestroyIcon(it->temp_icon);
-
- it->temp_file = mir_wstrdup(path);
it->temp_icon = hIcon;
+
+ replaceStrW(it->temp_file, path);
it->temp_reset = FALSE;
}
}