From b2fad485cd5b41744ef0cc4a02722c021afd926c Mon Sep 17 00:00:00 2001 From: Rozhuk Ivan Date: Mon, 1 Dec 2014 00:07:01 +0000 Subject: ZeroMemory -> memset, few bugs fised git-svn-id: http://svn.miranda-ng.org/main/trunk@11184 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/TabSRMM/src/tabctrl.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/TabSRMM/src/tabctrl.cpp') 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)); } /* -- cgit v1.2.3