mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-09 08:30:54 +02:00
Amicommon: Change back WindowPtr in DiskSize/DiskFree
git-svn-id: trunk@29299 -
This commit is contained in:
parent
788c6a6f83
commit
7c42cb8b0c
@ -631,6 +631,8 @@ begin
|
||||
DiskSize := Int64(Inf.id_NumBlocks) * Inf.id_BytesPerBlock;
|
||||
UnLock(DirLock);
|
||||
end;
|
||||
if OldWinPtr <> Pointer(-1) then
|
||||
MyProc^.pr_WindowPtr := OldWinPtr;
|
||||
end;
|
||||
|
||||
function DiskSize(Drive: Byte): Int64;
|
||||
@ -663,6 +665,8 @@ begin
|
||||
DiskFree := Int64(Inf.id_NumBlocks - Inf.id_NumBlocksUsed) * Inf.id_BytesPerBlock;
|
||||
UnLock(DirLock);
|
||||
end;
|
||||
if OldWinPtr <> Pointer(-1) then
|
||||
MyProc^.pr_WindowPtr := OldWinPtr;
|
||||
end;
|
||||
|
||||
function DiskFree(Drive: Byte): Int64;
|
||||
|
@ -640,6 +640,8 @@ begin
|
||||
DiskSize := Int64(Inf.id_NumBlocks) * Inf.id_BytesPerBlock;
|
||||
UnLock(DirLock);
|
||||
end;
|
||||
if OldWinPtr <> Pointer(-1) then
|
||||
MyProc^.pr_WindowPtr := OldWinPtr;
|
||||
end;
|
||||
|
||||
function DiskSize(Drive: Byte): Int64;
|
||||
@ -672,6 +674,8 @@ begin
|
||||
DiskFree := Int64(Inf.id_NumBlocks - Inf.id_NumBlocksUsed) * Inf.id_BytesPerBlock;
|
||||
UnLock(DirLock);
|
||||
end;
|
||||
if OldWinPtr <> Pointer(-1) then
|
||||
MyProc^.pr_WindowPtr := OldWinPtr;
|
||||
end;
|
||||
|
||||
function DiskFree(Drive: Byte): Int64;
|
||||
|
Loading…
Reference in New Issue
Block a user