Browse Source

* FormatMessageA -> FormatMessage (W version)

git-svn-id: trunk@21937 -
michael 13 years ago
parent
commit
252c2bbc83
1 changed files with 6 additions and 4 deletions
  1. 6 4
      rtl/wince/dynlibs.inc

+ 6 - 4
rtl/wince/dynlibs.inc

@@ -63,14 +63,16 @@ Function GetLoadErrorStr: string;
 
 
 Var
 Var
   rc,c : integer;
   rc,c : integer;
+  w : widestring;
   
   
 begin  
 begin  
   rc := GetLastError;
   rc := GetLastError;
-  SetLength(Result,255);
-  C:=FormatMessageA(FORMAT_MESSAGE_FROM_SYSTEM,nil,rc,
+  SetLength(w,255);
+  C:=FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM,nil,rc,
                  MakeLangId(LANG_NEUTRAL, SUBLANG_DEFAULT),
                  MakeLangId(LANG_NEUTRAL, SUBLANG_DEFAULT),
-                 @Result[1], 255,nil);
-  SetLength(Result,c);
+                 @W[1], 255,nil);
+  SetLength(w,c);
+  Result:=w;
 end;
 end;
 
 
 {$endif}
 {$endif}