diff options
author | Rozhuk Ivan <rozhuk.im@gmail.com> | 2014-11-30 18:33:56 +0000 |
---|---|---|
committer | Rozhuk Ivan <rozhuk.im@gmail.com> | 2014-11-30 18:33:56 +0000 |
commit | 4f0e30cdf56fbafdf955bbe8b93930bab9e39bd0 (patch) | |
tree | ded36ec10c55fb5d33c8d2e471ec808eeb058a04 /protocols/SkypeClassic/src/skypeapi.cpp | |
parent | 237d02ebbabbedfb8b33160ebfb5250bbd491eca (diff) |
Fix buf size for Get/Set text, open/save file name
SMS: SIZE_T -> size_t
MRA: small code cleanup
git-svn-id: http://svn.miranda-ng.org/main/trunk@11175 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeClassic/src/skypeapi.cpp')
-rw-r--r-- | protocols/SkypeClassic/src/skypeapi.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/protocols/SkypeClassic/src/skypeapi.cpp b/protocols/SkypeClassic/src/skypeapi.cpp index afbde43ec8..8ed5900f57 100644 --- a/protocols/SkypeClassic/src/skypeapi.cpp +++ b/protocols/SkypeClassic/src/skypeapi.cpp @@ -738,7 +738,7 @@ static INT_PTR CALLBACK DialDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPAR switch (LOWORD(wParam)) {
case IDDIAL:
EnableWindow(GetDlgItem(hwndDlg, IDDIAL), FALSE);
- GetDlgItemTextA(hwndDlg, IDC_NUMBER, number, sizeof(number));
+ GetDlgItemTextA(hwndDlg, IDC_NUMBER, number, SIZEOF(number));
if (!strncmp(number, "00", 2)) {
memmove(number, number+1, sizeof(number)-1);
number[0]='+';
@@ -834,15 +834,15 @@ static INT_PTR CALLBACK CallstatDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, TranslateDialogDefault(hwndDlg);
SendMessage(hwndDlg, WM_COMMAND, IDC_JOIN, 0);
- GetWindowTextA(hwndDlg, buf, sizeof(buf));
+ GetWindowTextA(hwndDlg, buf, SIZEOF(buf));
_snprintf(buf2, sizeof(buf), buf, CallService(MS_CLIST_GETCONTACTDISPLAYNAME,(WPARAM)lParam,0));
SetWindowTextA(hwndDlg, buf2);
- GetDlgItemTextA(hwndDlg, IDC_JOIN, buf, sizeof(buf));
+ GetDlgItemTextA(hwndDlg, IDC_JOIN, buf, SIZEOF(buf));
_snprintf(buf2, sizeof(buf), buf, szOtherCaller);
SetDlgItemTextA(hwndDlg, IDC_JOIN, buf2);
- GetDlgItemTextA(hwndDlg, IDC_HOLD, buf, sizeof(buf));
+ GetDlgItemTextA(hwndDlg, IDC_HOLD, buf, SIZEOF(buf));
_snprintf(buf2, sizeof(buf), buf, szOtherCaller);
SetDlgItemTextA(hwndDlg, IDC_HOLD, buf2);
|