Browse Source

* fix win32

git-svn-id: trunk@3851 -
peter 19 years ago
parent
commit
16411cda22
1 changed files with 2 additions and 0 deletions
  1. 2 0
      rtl/inc/wstrings.inc

+ 2 - 0
rtl/inc/wstrings.inc

@@ -160,7 +160,9 @@ begin
       If P<>Nil then
         begin
          PWideRec(P)^.Len:=Len*2;     { Initial length }
+{$ifndef FPC_WINLIKEWIDESTRING}
          PWideRec(P)^.Ref:=1;         { Initial Refcount }
+{$endif FPC_WINLIKEWIDESTRING}
          PWideRec(P)^.First:=#0;      { Terminating #0 }
          inc(p,WideFirstOff);         { Points to string now }
         end