From b2fad485cd5b41744ef0cc4a02722c021afd926c Mon Sep 17 00:00:00 2001
From: Rozhuk Ivan <rozhuk.im@gmail.com>
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/LotusNotify/src/LotusNotify.cpp | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

(limited to 'plugins/LotusNotify/src/LotusNotify.cpp')

diff --git a/plugins/LotusNotify/src/LotusNotify.cpp b/plugins/LotusNotify/src/LotusNotify.cpp
index 3549ddc84a..f9af356b9a 100644
--- a/plugins/LotusNotify/src/LotusNotify.cpp
+++ b/plugins/LotusNotify/src/LotusNotify.cpp
@@ -468,7 +468,7 @@ void showMsg(TCHAR* sender,TCHAR* text, DWORD id, char *strUID)
 	//The text for the second line. You could even make something like: char lpzText[128]; mir_tstrcpy(lpzText, "Hello world!"); It's your choice.
 
 	POPUPATT * mpd = (POPUPATT*)malloc(sizeof(POPUPATT));
-	ZeroMemory(&ppd, sizeof(ppd)); //This is always a good thing to do.
+	memset(&ppd, 0, sizeof(ppd)); //This is always a good thing to do.
 	ppd.lchContact = NULL; //(HANDLE)hContact; //Be sure to use a GOOD handle, since this will not be checked.
 	ppd.lchIcon = LoadIcon(hInst, MAKEINTRESOURCE(IDI_ICON1));
 	_tcscpy_s(ppd.lptzContactName, SIZEOF(ppd.lptzContactName), sender);
@@ -716,7 +716,7 @@ void checkthread(void*)
 						  &retNoteOID,		/* out: OID */
 						  &retModified,		/* out:     */
 						  &retNoteClass) ;
-		ZeroMemory(strLink, sizeof(strLink));
+		memset(strLink, 0, sizeof(strLink));
 		mir_snprintf(strLink, SIZEOF(strLink), "%.8lX%.8lX%.8lX%.8lX",
 						retNoteOID.File.Innards[1],
 						retNoteOID.File.Innards[0],
@@ -752,8 +752,8 @@ void checkthread(void*)
 
 
 		WCHAR msgFrom[512], msgSubject[512];
-		ZeroMemory(msgFrom,sizeof(msgFrom));
-		ZeroMemory(msgSubject,sizeof(msgSubject));
+		memset(msgFrom, 0, sizeof(msgFrom));
+		memset(msgSubject, 0, sizeof(msgSubject));
 
 		if(wcslen(field_from_UNICODE) < 512 && wcslen(field_from_UNICODE) > 3 && wcsstr(field_from_UNICODE, L"CN=") == field_from_UNICODE)
 			_tcsncpy_s(msgFrom, &(field_from_UNICODE[3]), wcscspn(field_from_UNICODE, L"/")-3 );
-- 
cgit v1.2.3