Browse Source

* PChar -> PAnsiChar

Michaël Van Canneyt 2 years ago
parent
commit
9a7ec30db3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/rtl-extra/src/win/serial.pp

+ 1 - 1
packages/rtl-extra/src/win/serial.pp

@@ -186,7 +186,7 @@ begin
   securityAttributes.lpSecurityDescriptor := nil;
   securityAttributes.bInheritHandle := true;
   result := CreateFile(
-    PChar(DeviceName),
+    PAnsiChar(DeviceName),
     GENERIC_READ or GENERIC_WRITE,
     0,
     @securityAttributes,