Daniel Lehman : msvcp90: Return last index in string:: find_last_not_of_cstr_substr if input is empty.

Alexandre Julliard julliard at winehq.org
Fri Jan 10 14:44:56 CST 2014


Module: wine
Branch: stable
Commit: f25731b8ece1d5612c849d8b21938a53d8ef75e5
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=f25731b8ece1d5612c849d8b21938a53d8ef75e5

Author: Daniel Lehman <dlehman at esri.com>
Date:   Wed Sep 12 16:13:47 2012 -0700

msvcp90: Return last index in string::find_last_not_of_cstr_substr if input is empty.

(cherry picked from commit 90cb553e5eaec08187e325a5eb7ec8f3c393ac5b)

---

 dlls/msvcp90/string.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/msvcp90/string.c b/dlls/msvcp90/string.c
index fd7b131..2dae8ac 100644
--- a/dlls/msvcp90/string.c
+++ b/dlls/msvcp90/string.c
@@ -1823,7 +1823,7 @@ MSVCP_size_t __thiscall MSVCP_basic_string_char_find_last_not_of_cstr_substr(
 
     TRACE("%p %p %lu %lu\n", this, find, off, len);
 
-    if(len>0 && this->size>0) {
+    if(this->size>0) {
         if(off >= this->size)
             off = this->size-1;
 
@@ -3841,7 +3841,7 @@ MSVCP_size_t __thiscall MSVCP_basic_string_wchar_find_last_not_of_cstr_substr(
 
     TRACE("%p %p %lu %lu\n", this, find, off, len);
 
-    if(len>0 && this->size>0) {
+    if(this->size>0) {
         if(off >= this->size)
             off = this->size-1;
 




More information about the wine-cvs mailing list