From 40aaec189f686e661deb2e932d3b34ded026201e Mon Sep 17 00:00:00 2001 From: Daniel Lehman Date: Fri, 30 Dec 2011 09:25:47 -0800 Subject: msvcp90: basic_string<>::rfind(ch) should call rfind rfind() currently calls (forward) find(), so the search is done from the wrong end of the string --- dlls/msvcp90/string.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/msvcp90/string.c b/dlls/msvcp90/string.c index 1479780..5815197 100644 --- a/dlls/msvcp90/string.c +++ b/dlls/msvcp90/string.c @@ -1658,7 +1658,7 @@ DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_rfind_ch, 12) MSVCP_size_t __thiscall MSVCP_basic_string_char_rfind_ch( const basic_string_char *this, char ch, MSVCP_size_t pos) { - return MSVCP_basic_string_char_find_cstr_substr(this, &ch, pos, 1); + return MSVCP_basic_string_char_rfind_cstr_substr(this, &ch, pos, 1); } /* ?find_first_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIPBDII@Z */ @@ -3652,7 +3652,7 @@ DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_rfind_ch, 12) MSVCP_size_t __thiscall MSVCP_basic_string_wchar_rfind_ch( const basic_string_wchar *this, wchar_t ch, MSVCP_size_t pos) { - return MSVCP_basic_string_wchar_find_cstr_substr(this, &ch, pos, 1); + return MSVCP_basic_string_wchar_rfind_cstr_substr(this, &ch, pos, 1); } /* ?find_first_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIPB_WII@Z */ -- 1.6.0.4