Skip to content

Commit

Permalink
fixes, merge with main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
DmBel committed Jul 7, 2022
1 parent c96b4a7 commit 415dfa9
Show file tree
Hide file tree
Showing 5 changed files with 275 additions and 131 deletions.
1 change: 1 addition & 0 deletions jcl/source/common/JclResources.pas
Original file line number Diff line number Diff line change
Expand Up @@ -1960,6 +1960,7 @@ interface
RsOSVersionWinServer2016 = 'Windows Server 2016';
RsOSVersionWinServer2019 = 'Windows Server 2019';
RsOSVersionWinServer = 'Windows Server';
RsOSVersionWin11 = 'Windows 11';

RsEditionWinXPHome = 'Home Edition';
RsEditionWinXPPro = 'Professional';
Expand Down
4 changes: 2 additions & 2 deletions jcl/source/common/JclStreams.pas
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,7 @@ constructor TJclHandleStream.Create(AHandle: THandle);

function TJclHandleStream.Read(var Buffer; Count: Longint): Longint;
begin
Result := 0;
//Result := 0;
{$IFDEF MSWINDOWS}
if (Count <= 0) or not ReadFile(Handle, Buffer, DWORD(Count), DWORD(Result), nil) then
Result := 0;
Expand All @@ -810,7 +810,7 @@ function TJclHandleStream.Read(var Buffer; Count: Longint): Longint;

function TJclHandleStream.Write(const Buffer; Count: Longint): Longint;
begin
Result := 0;
//Result := 0;
{$IFDEF MSWINDOWS}
if (Count <= 0) or not WriteFile(Handle, Buffer, DWORD(Count), DWORD(Result), nil) then
Result := 0;
Expand Down
Loading

0 comments on commit 415dfa9

Please sign in to comment.