diff --git a/dlls/msvcp100/string.c b/dlls/msvcp100/string.c index 7faf95fb813..9771ace8478 100644 --- a/dlls/msvcp100/string.c +++ b/dlls/msvcp100/string.c @@ -189,7 +189,7 @@ static MSVCP_bool basic_string_char_inside( { char *cstr = basic_string_char_ptr(this); - return (ptr=cstr+this->size) ? FALSE : TRUE; + return ptr>=cstr && ptrsize; } /* ?_Tidy@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IAEX_NI@Z */ @@ -474,7 +474,7 @@ static MSVCP_bool basic_string_wchar_inside( { wchar_t *cstr = basic_string_wchar_ptr(this); - return (ptr=cstr+this->size) ? FALSE : TRUE; + return ptr>=cstr && ptrsize; } /* ?_Tidy@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IAEX_NI@Z */