mirror of
				https://gitlab.com/freepascal.org/fpc/source.git
				synced 2025-11-04 16:39:24 +01:00 
			
		
		
		
	* improved r5564
git-svn-id: trunk@5573 -
This commit is contained in:
		
							parent
							
								
									6c72da9be2
								
							
						
					
					
						commit
						f37ed0cf25
					
				@ -237,12 +237,9 @@ Procedure fpc_WideStr_Incr_Ref(Var S : Pointer);[Public,Alias:'FPC_WIDESTR_INCR_
 | 
				
			|||||||
    If S=Nil then
 | 
					    If S=Nil then
 | 
				
			||||||
      exit;
 | 
					      exit;
 | 
				
			||||||
{$ifdef FPC_WINLIKEWIDESTRING}
 | 
					{$ifdef FPC_WINLIKEWIDESTRING}
 | 
				
			||||||
    if S<>nil then
 | 
					    p:=NewWidestring(length(WideString(S)));
 | 
				
			||||||
    begin
 | 
					    move(s^,p^,length(WideString(s))*sizeof(widechar));
 | 
				
			||||||
      p:=NewWidestring(length(WideString(S)));
 | 
					    s:=p;
 | 
				
			||||||
      move(s^,p^,length(WideString(s))*sizeof(widechar));
 | 
					 | 
				
			||||||
    end;
 | 
					 | 
				
			||||||
    s:= p;
 | 
					 | 
				
			||||||
{$else FPC_WINLIKEWIDESTRING}
 | 
					{$else FPC_WINLIKEWIDESTRING}
 | 
				
			||||||
    { Let's be paranoid : Constant string ??}
 | 
					    { Let's be paranoid : Constant string ??}
 | 
				
			||||||
    If PWideRec(S-WideFirstOff)^.Ref<0 then exit;
 | 
					    If PWideRec(S-WideFirstOff)^.Ref<0 then exit;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user