diff options
| author | Igor Pavlov <87184205+ip7z@users.noreply.github.com> | 2023-06-21 00:00:00 +0000 |
|---|---|---|
| committer | Igor Pavlov <87184205+ip7z@users.noreply.github.com> | 2023-12-17 14:59:19 +0500 |
| commit | 5b39dc76f1bc82f941d5c800ab9f34407a06b53a (patch) | |
| tree | fe5e17420300b715021a76328444088d32047963 /CPP/Windows/Control/ComboBox.cpp | |
| parent | 93be7d4abfd4233228f58ee1fbbcd76d91be66a4 (diff) | |
| download | 7zip-5b39dc76f1bc82f941d5c800ab9f34407a06b53a.tar.gz 7zip-5b39dc76f1bc82f941d5c800ab9f34407a06b53a.tar.bz2 7zip-5b39dc76f1bc82f941d5c800ab9f34407a06b53a.zip | |
23.0123.01
Diffstat (limited to 'CPP/Windows/Control/ComboBox.cpp')
| -rw-r--r-- | CPP/Windows/Control/ComboBox.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/CPP/Windows/Control/ComboBox.cpp b/CPP/Windows/Control/ComboBox.cpp index f6ed8d3..8da487d 100644 --- a/CPP/Windows/Control/ComboBox.cpp +++ b/CPP/Windows/Control/ComboBox.cpp | |||
| @@ -43,10 +43,10 @@ LRESULT CComboBox::GetLBText(int index, UString &s) | |||
| 43 | s.Empty(); | 43 | s.Empty(); |
| 44 | if (g_IsNT) | 44 | if (g_IsNT) |
| 45 | { | 45 | { |
| 46 | LRESULT len = SendMsgW(CB_GETLBTEXTLEN, MY__int_TO_WPARAM(index), 0); | 46 | LRESULT len = SendMsgW(CB_GETLBTEXTLEN, MY_int_TO_WPARAM(index), 0); |
| 47 | if (len == CB_ERR) | 47 | if (len == CB_ERR) |
| 48 | return len; | 48 | return len; |
| 49 | LRESULT len2 = SendMsgW(CB_GETLBTEXT, MY__int_TO_WPARAM(index), (LPARAM)s.GetBuf((unsigned)len)); | 49 | LRESULT len2 = SendMsgW(CB_GETLBTEXT, MY_int_TO_WPARAM(index), (LPARAM)s.GetBuf((unsigned)len)); |
| 50 | if (len2 == CB_ERR) | 50 | if (len2 == CB_ERR) |
| 51 | return len; | 51 | return len; |
| 52 | if (len > len2) | 52 | if (len > len2) |
| @@ -55,11 +55,11 @@ LRESULT CComboBox::GetLBText(int index, UString &s) | |||
| 55 | return len; | 55 | return len; |
| 56 | } | 56 | } |
| 57 | AString sa; | 57 | AString sa; |
| 58 | LRESULT len = GetLBText(index, sa); | 58 | const LRESULT len = GetLBText(index, sa); |
| 59 | if (len == CB_ERR) | 59 | if (len == CB_ERR) |
| 60 | return len; | 60 | return len; |
| 61 | s = GetUnicodeString(sa); | 61 | s = GetUnicodeString(sa); |
| 62 | return s.Len(); | 62 | return (LRESULT)s.Len(); |
| 63 | } | 63 | } |
| 64 | #endif | 64 | #endif |
| 65 | 65 | ||
