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