summaryrefslogtreecommitdiff
path: root/plugins/WhoUsesMyFiles/wumf.c
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2012-06-28 20:15:16 +0000
committerKirill Volinsky <mataes2007@gmail.com>2012-06-28 20:15:16 +0000
commitf677c23f055fb75e6a7da00c4109b0515e151d1c (patch)
tree9efaf02eebd47d878fd2e4a498120784373a679d /plugins/WhoUsesMyFiles/wumf.c
parent3af989edadb2d955e9d8260b55b2249abcaa84ef (diff)
WhoUsesMyFiles:
compilation fix git-svn-id: http://svn.miranda-ng.org/main/trunk@674 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/WhoUsesMyFiles/wumf.c')
-rw-r--r--plugins/WhoUsesMyFiles/wumf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/WhoUsesMyFiles/wumf.c b/plugins/WhoUsesMyFiles/wumf.c
index 98f741bdd1..524648185e 100644
--- a/plugins/WhoUsesMyFiles/wumf.c
+++ b/plugins/WhoUsesMyFiles/wumf.c
@@ -33,7 +33,7 @@ void AddToList(HWND hList, PWumf w)
lvi.iItem=ListView_GetItemCount(hList)+1;
lvi.mask= LVIF_PARAM|LVIF_TEXT;
lvi.pszText = w->szID;
- lvi.cchTextMax = strlen(w->szID);
+ lvi.cchTextMax = (int)_tcslen(w->szID);
lvi.lParam = (LPARAM)w;
ListView_InsertItem(hList,&lvi);
}
@@ -196,8 +196,8 @@ void LogWumf(PWumf w)
GetDateFormat(LOCALE_USER_DEFAULT,DATE_SHORTDATE, &time,NULL, lpDateStr, 20);
GetTimeFormat(LOCALE_USER_DEFAULT,TIME_FORCE24HOURFORMAT|TIME_NOTIMEMARKER, &time,NULL, lpTimeStr, 20);
wsprintf(str ,"%s %s %20s\t%s\r\n\0",lpDateStr, lpTimeStr, w->szUser, w->szPath);
- SetFilePointer (hLog, 0, NULL, FILE_END) ; ;
- WriteFile(hLog, str ,strlen(str),&bytes,NULL);
+ SetFilePointer (hLog, 0, NULL, FILE_END);
+ WriteFile(hLog, str, (DWORD)_tcslen(str), &bytes, NULL);
}
/*