diff options
author | George Hazan <george.hazan@gmail.com> | 2012-08-06 13:17:22 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-08-06 13:17:22 +0000 |
commit | dd8167ac202bd21dfd2548efdcd2691b217f794e (patch) | |
tree | f19a4383823431bf68b003512285d531d132add5 /plugins/PluginUpdater/src | |
parent | d8c016989bd189f22b4862ea81769c5b11415deb (diff) |
crash when popups are disabled
git-svn-id: http://svn.miranda-ng.org/main/trunk@1379 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/PluginUpdater/src')
-rw-r--r-- | plugins/PluginUpdater/src/Notifications.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/PluginUpdater/src/Notifications.cpp b/plugins/PluginUpdater/src/Notifications.cpp index 857a38229a..3bcc187f4a 100644 --- a/plugins/PluginUpdater/src/Notifications.cpp +++ b/plugins/PluginUpdater/src/Notifications.cpp @@ -119,7 +119,7 @@ void ShowPopup(HWND hDlg, LPCTSTR ptszTitle, LPCTSTR ptszText, int Number, int A {
if ( !ServiceExists(MS_POPUP_ADDPOPUPEX) || !DBGetContactSettingByte(NULL, "PopUp", "ModuleIsEnabled", 1) || !DBGetContactSettingByte(NULL, MODNAME, "Popups2", DEFAULT_POPUP_ENABLED)) {
char setting[100];
- mir_snprintf(setting, SIZEOF(setting), "Popups%sM", Number);
+ mir_snprintf(setting, SIZEOF(setting), "Popups%dM", Number);
if (DBGetContactSettingByte(NULL, MODNAME, setting, DEFAULT_MESSAGE_ENABLED)) {
int iMsgType;
switch( Number ) {
|