From 0ca0de7698b523effaaf6cc9c608e936fa5aaf86 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 2 Dec 2014 21:55:57 +0000 Subject: useless calls of mir_*strlen in DrawText replaced with -1 git-svn-id: http://svn.miranda-ng.org/main/trunk@11223 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/WebView/src/webview_datawnd.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'plugins/WebView/src/webview_datawnd.cpp') diff --git a/plugins/WebView/src/webview_datawnd.cpp b/plugins/WebView/src/webview_datawnd.cpp index a552c52554..5af34f604a 100644 --- a/plugins/WebView/src/webview_datawnd.cpp +++ b/plugins/WebView/src/webview_datawnd.cpp @@ -62,10 +62,10 @@ INT_PTR CALLBACK DlgProcFind(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lPara free(tempbuffer); Filter(buff); - CharUpperBuffA(buff, mir_strlen(buff)); + CharUpperBuffA(buff, (int)strlen(buff)); GetDlgItemTextA(hwndDlg, IDC_FINDWHAT, NewSearchstr, SIZEOF(NewSearchstr)); - CharUpperBuffA(NewSearchstr, mir_strlen(NewSearchstr)); + CharUpperBuffA(NewSearchstr, (int)strlen(NewSearchstr)); OLDstartposition = startposition; @@ -516,15 +516,15 @@ void ValidatePosition(HWND hwndDlg) MONITORINFO monitorInfo; monitorInfo.cbSize = sizeof(MONITORINFO); - if ( GetMonitorInfo(hMonitor, &monitorInfo)) + if (GetMonitorInfo(hMonitor, &monitorInfo)) CopyMemory(&r, &monitorInfo.rcMonitor, sizeof(RECT)); // /window going off right of screen* - if ((Xposition + WindowWidth) >= r.right) + if (Xposition + WindowWidth >= r.right) Xposition = r.right - WindowWidth; // window going off bottom of screen - if ((Yposition + (WindowHeight)) >= r.bottom) + if (Yposition + WindowHeight >= r.bottom) Yposition = r.bottom - WindowHeight; // window going off left of screen -- cgit v1.2.3