summaryrefslogtreecommitdiff
path: root/plugins/Scriver/src/msgoptions.cpp
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2015-01-25 20:07:10 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2015-01-25 20:07:10 +0000
commit7325c10a7921fb043253a339ab5b5c3c803bfb14 (patch)
treeaee9caf5c14c7b8c36540cba14642a453c61919f /plugins/Scriver/src/msgoptions.cpp
parent58ac4567a402d383c3edb0749b9f2fb88b8422d6 (diff)
- Unload Msftedit.dll after use
git-svn-id: http://svn.miranda-ng.org/main/trunk@11907 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Scriver/src/msgoptions.cpp')
-rw-r--r--plugins/Scriver/src/msgoptions.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/Scriver/src/msgoptions.cpp b/plugins/Scriver/src/msgoptions.cpp
index e476d5a419..89b837e0bc 100644
--- a/plugins/Scriver/src/msgoptions.cpp
+++ b/plugins/Scriver/src/msgoptions.cpp
@@ -105,13 +105,12 @@ int FontServiceFontsChanged(WPARAM, LPARAM)
void RegisterFontServiceFonts()
{
- int i;
FontIDT fid = { sizeof(fid) };
_tcsncpy_s(fid.group, LPGENT("Messaging"), _TRUNCATE);
_tcsncpy_s(fid.backgroundGroup, LPGENT("Messaging"), _TRUNCATE);
strncpy(fid.dbSettingsGroup, SRMMMOD, SIZEOF(fid.dbSettingsGroup));
fid.flags = FIDF_DEFAULTVALID | FIDF_DEFAULTVALID;
- for (i = 0; i < SIZEOF(fontOptionsList); i++) {
+ for (int i = 0; i < SIZEOF(fontOptionsList); i++) {
fid.order = i;
char szTemp[100];
@@ -131,7 +130,7 @@ void RegisterFontServiceFonts()
_tcsncpy_s(cid.group, LPGENT("Messaging"), _TRUNCATE);
strncpy(cid.dbSettingsGroup, SRMMMOD, SIZEOF(fid.dbSettingsGroup));
cid.flags = 0;
- for (i = 0; i < SIZEOF(colourOptionsList); i++) {
+ for (int i = 0; i < SIZEOF(colourOptionsList); i++) {
cid.order = i;
_tcsncpy(cid.name, colourOptionsList[i].szName, SIZEOF(cid.name));
if (colourOptionsList[i].systemColor != -1)