Home » U++ Library support » U++ Core » Bug: AString<B>::ReverseFind broken for wchar 
	
		
		
			| Bug: AString<B>::ReverseFind broken for wchar [message #42257] | 
			Sun, 02 March 2014 17:49   | 
		 
		
			
				
				
				
					
						  
						hans
						 Messages: 44 Registered: March 2006  Location: Germany
						
					 | 
					Member  | 
					 | 
		 
		 
	 | 
 
	
		Small bug in SVN rev6982: 
 
in function  
int AString<B>::ReverseFind(int len, const tchar *s, int from) const
  
 
change line  
if(*s == *p && memcmp(s, p, len) == 0)
  
to 
if(*s == *p && memcmp(s, p, len*sizeof(tchar)) == 0)
  
 
Thanks, 
Hans 
		
		
		
 |  
	| 
		
	 | 
 
 
 |  
	| 
		
 |  
	| 
		
 |  
	| 
		
 |   
Goto Forum:
 
 Current Time: Tue Nov 04 11:03:33 CET 2025 
 Total time taken to generate the page: 0.04761 seconds 
 |