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/LotusNotify | |
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/LotusNotify')
-rw-r--r-- | plugins/LotusNotify/src/LotusNotify.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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 );
|