summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2016-01-30 18:00:12 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2016-01-30 18:00:12 +0000
commit66d36547ef14644965d9a5afa46e4056716664b2 (patch)
treeaf01f2d7570fd3645dec15c41a2c860659030a3f /src
parent8dc912bbd582e33c886c4011b9b43f53131bda20 (diff)
mir_app:
- Attempt to fix uninitialized memory git-svn-id: http://svn.miranda-ng.org/main/trunk@16198 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src')
-rw-r--r--src/mir_app/src/headerbar.cpp1
-rw-r--r--src/mir_app/src/options.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/mir_app/src/headerbar.cpp b/src/mir_app/src/headerbar.cpp
index a3b25bd61c..84ca93ef75 100644
--- a/src/mir_app/src/headerbar.cpp
+++ b/src/mir_app/src/headerbar.cpp
@@ -150,6 +150,7 @@ static LRESULT MHeaderbar_OnPaint(HWND hwndDlg, MHeaderbarCtrl *mit)
bmi.bmiHeader.biPlanes = 1;
bmi.bmiHeader.biBitCount = 32;
bmi.bmiHeader.biCompression = BI_RGB;
+ bmi.bmiColors[0].rgbRed = bmi.bmiColors[0].rgbGreen = bmi.bmiColors[0].rgbBlue = bmi.bmiColors[0].rgbReserved = 0;
hBmp = CreateDIBSection(tempDC, &bmi, DIB_RGB_COLORS, NULL, NULL, 0);
hOldBmp = (HBITMAP)SelectObject(tempDC, hBmp);
diff --git a/src/mir_app/src/options.cpp b/src/mir_app/src/options.cpp
index bc724d11cd..3c8623c15c 100644
--- a/src/mir_app/src/options.cpp
+++ b/src/mir_app/src/options.cpp
@@ -393,6 +393,7 @@ static void AeroPaintControl(HWND hwnd, HDC hdc, UINT msg, LPARAM lpFlags)
bmi.bmiHeader.biPlanes = 1;
bmi.bmiHeader.biBitCount = 32;
bmi.bmiHeader.biCompression = BI_RGB;
+ bmi.bmiColors[0].rgbRed = bmi.bmiColors[0].rgbGreen = bmi.bmiColors[0].rgbBlue = bmi.bmiColors[0].rgbReserved = 0;
BYTE *pBits;
HBITMAP hBmp = CreateDIBSection(tempDC, &bmi, DIB_RGB_COLORS, (void **)&pBits, NULL, 0);