2
0
Michaël Van Canneyt 2 жил өмнө
parent
commit
9a7ec30db3

+ 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,