summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}
}