diff options
author | Rozhuk Ivan <rozhuk.im@gmail.com> | 2014-12-01 00:07:01 +0000 |
---|---|---|
committer | Rozhuk Ivan <rozhuk.im@gmail.com> | 2014-12-01 00:07:01 +0000 |
commit | b2fad485cd5b41744ef0cc4a02722c021afd926c (patch) | |
tree | aa19403cd699066600e8306be8ad33e4a17fba6f /plugins/TabSRMM/src/tabctrl.cpp | |
parent | fc62f1f1e1f8af40a1f7efe0ba3afc358fb66ef3 (diff) |
ZeroMemory -> memset, few bugs fised
git-svn-id: http://svn.miranda-ng.org/main/trunk@11184 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM/src/tabctrl.cpp')
-rw-r--r-- | plugins/TabSRMM/src/tabctrl.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/TabSRMM/src/tabctrl.cpp b/plugins/TabSRMM/src/tabctrl.cpp index 4690906a14..0035611a87 100644 --- a/plugins/TabSRMM/src/tabctrl.cpp +++ b/plugins/TabSRMM/src/tabctrl.cpp @@ -489,7 +489,7 @@ static void DrawThemesXpTabItem(HDC pDC, int ixItem, RECT *rcItem, UINT uiFlag, rcMem.right = szBmp.cx;
rcMem.bottom = szBmp.cy;
- ZeroMemory(&biOut, sizeof(BITMAPINFO)); // Fill local pixel arrays
+ memset(&biOut, 0, sizeof(BITMAPINFO)); // Fill local pixel arrays
bihOut = &biOut.bmiHeader;
bihOut->biSize = sizeof(BITMAPINFOHEADER);
@@ -711,7 +711,7 @@ static void PaintWorker(HWND hwnd, TabControlData *tabdat) rctClip = rctPage;
InflateRect(&rctClip, -tabdat->pContainer->tBorder, -tabdat->pContainer->tBorder);
}
- else ZeroMemory(&rctClip, sizeof(RECT));
+ else memset(&rctClip, 0, sizeof(RECT));
HPEN hPenOld = (HPEN)SelectObject(hdc, PluginConfig.tabConfig.m_hPenLight);
/*
@@ -722,7 +722,7 @@ static void PaintWorker(HWND hwnd, TabControlData *tabdat) if (!tabdat->bRefreshWithoutClip)
ExcludeClipRect(hdc, rctClip.left, rctClip.top, rctClip.right, rctClip.bottom);
else
- ZeroMemory(&rctClip, sizeof(RECT));
+ memset(&rctClip, 0, sizeof(RECT));
if ((!bClassicDraw || PluginConfig.m_fillColor) && IntersectRect(&rectTemp, &rctPage, &ps.rcPaint) && !CSkin::m_skinEnabled) {
RECT rcClient = rctPage;
if (dwStyle & TCS_BOTTOM) {
@@ -1389,7 +1389,7 @@ void TSAPI FreeTabConfig() if (PluginConfig.tabConfig.m_brushes[i])
DeleteObject(PluginConfig.tabConfig.m_brushes[i]);
- ZeroMemory(&PluginConfig.tabConfig, sizeof(myTabCtrl));
+ memset(&PluginConfig.tabConfig, 0, sizeof(PluginConfig.tabConfig));
}
/*
|