diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2014-12-13 07:47:16 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2014-12-13 07:47:16 +0000 |
commit | cce79a92d5341111997eaf7fd0a420fdddc3e50d (patch) | |
tree | 5b7677c4fae5647220b0e9e160296c2834826d6e /plugins/AVS/src/utils.cpp | |
parent | 3a93a20a595f312127dc086bc673b41a3bcd9def (diff) |
AVS: changed warning lavel to w4
git-svn-id: http://svn.miranda-ng.org/main/trunk@11360 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/AVS/src/utils.cpp')
-rw-r--r-- | plugins/AVS/src/utils.cpp | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/plugins/AVS/src/utils.cpp b/plugins/AVS/src/utils.cpp index bceae41a3e..5466b167ae 100644 --- a/plugins/AVS/src/utils.cpp +++ b/plugins/AVS/src/utils.cpp @@ -19,7 +19,7 @@ Boston, MA 02111-1307, USA. #include "commonheaders.h"
-void mir_sleep(int time)
+void mir_sleep(int time)
{
if (!g_shutDown)
WaitForSingleObject(hShutdownEvent, time);
@@ -67,10 +67,6 @@ void MakePathRelative(MCONTACT hContact) int CreateAvatarInCache(MCONTACT hContact, avatarCacheEntry *ace, char *szProto)
{
- char *szExt = NULL;
- HANDLE hFile = INVALID_HANDLE_VALUE;
- DWORD dwFileSizeHigh = 0, dwFileSize = 0, sizeLimit = 0;
-
ptrT tszValue;
TCHAR tszFilename[MAX_PATH]; tszFilename[0] = 0;
@@ -203,7 +199,7 @@ int CreateAvatarInCache(MCONTACT hContact, avatarCacheEntry *ace, char *szProto) }
if (db_get_b(0, AVS_MODULE, "MakeGrayscale", 0))
- ace->hbmPic = MakeGrayscale(hContact, ace->hbmPic);
+ ace->hbmPic = MakeGrayscale(ace->hbmPic);
if (noTransparency) {
fei->FI_CorrectBitmap32Alpha(ace->hbmPic, TRUE);
@@ -261,8 +257,7 @@ int GetFileHash(TCHAR* filename) remainder = (remainder << 1);
}
}
- }
- while (dwRead == 1024);
+ } while (dwRead == 1024);
CloseHandle(hFile);
|