diff options
author | George Hazan <george.hazan@gmail.com> | 2012-10-26 12:12:58 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-10-26 12:12:58 +0000 |
commit | aaf3d972a3b32623f7e2984382adc5ca633bb280 (patch) | |
tree | f866e46edb71fca99e57ed08d8bfe34cbb3e86fc /plugins/Popup/src/opt_gen.cpp | |
parent | 5940fca1e79e3e2a53abfcc9805bfc631fa281da (diff) |
attemp to fix crash in Popups history
git-svn-id: http://svn.miranda-ng.org/main/trunk@2084 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Popup/src/opt_gen.cpp')
-rw-r--r-- | plugins/Popup/src/opt_gen.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/Popup/src/opt_gen.cpp b/plugins/Popup/src/opt_gen.cpp index de54c568cf..39f756b606 100644 --- a/plugins/Popup/src/opt_gen.cpp +++ b/plugins/Popup/src/opt_gen.cpp @@ -347,7 +347,7 @@ INT_PTR CALLBACK DlgProcPopUpGeneral(HWND hwnd, UINT msg, WPARAM wParam, LPARAM SetWindowLongPtr(hwndBox, GWL_EXSTYLE, GetWindowLongPtr(hwndBox, GWL_EXSTYLE)|WS_EX_LAYERED);
SetLayeredWindowAttributes(hwndBox, NULL, 0, LWA_ALPHA);
ShowWindow(hwndBox, SW_SHOW);
- for (int i = 0; i <= 255; i += 15) {
+ for (int i=0; i <= 255; i += 15) {
SetLayeredWindowAttributes(hwndBox, NULL, i, LWA_ALPHA);
UpdateWindow(hwndBox);
Sleep(1);
@@ -559,7 +559,7 @@ INT_PTR CALLBACK DlgProcPopUpGeneral(HWND hwnd, UINT msg, WPARAM wParam, LPARAM char prefix[128];
LPTSTR pszSettingName = NULL;
- for (int i = 0; i < protocolCount; ++i)
+ for (int i=0; i < protocolCount; ++i)
{
mir_snprintf(prefix, sizeof(prefix), "Protocol Status/%s", protocols[i]->szModuleName);
pszSettingName = mir_a2t(prefix);
@@ -609,7 +609,7 @@ INT_PTR CALLBACK DlgProcPopUpGeneral(HWND hwnd, UINT msg, WPARAM wParam, LPARAM break;
case WM_DESTROY: {
if (statusOptions) {
- for (int i = 0; i < statusOptionsCount; ++i) {
+ for (int i=0; i < statusOptionsCount; ++i) {
mir_free(statusOptions[i].pszOptionName);
mir_free(statusOptions[i].pszSettingName);
}
|