Michael VAN CANNEYT 2 лет назад
Родитель
Сommit
c2cb3f7919
1 измененных файлов с 1 добавлено и 1 удалено
  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,