diff options
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 | ||
