Skip to content

Commit 2f2a235

Browse files
committed
Compatibility with fpc 3.2.2
Compatibility with fpc 3.2.2
1 parent c41bd20 commit 2f2a235

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

wia.pas

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@
2525
interface
2626

2727
uses
28-
Windows, DelphiCompatibility, Classes, SysUtils, ComObj, ActiveX,
29-
WiaDef, WIA_LH, Wia_PaperSizes;
28+
Windows, DelphiCompatibility, Classes, SysUtils,
29+
{$ifdef fpc} testutils, {$endif}
30+
ComObj, ActiveX, WiaDef, WIA_LH, Wia_PaperSizes;
3031

3132
type
3233
//Dinamic Array types
@@ -767,7 +768,7 @@ function WIAItemCategory(const AGUID: TGUID): TWIAItemCategory;
767768
Result:= wicNULL;
768769

769770
for i:=Low(TWIAItemCategory) to High(TWIAItemCategory) do
770-
if (WiaItemCategoryGUID[i] = AGUID) then
771+
if IsEqualGUID(WiaItemCategoryGUID[i], AGUID) then
771772
begin
772773
Result:= i;
773774
break;
@@ -833,7 +834,7 @@ function WIAImageFormat(const AGUID: TGUID; var Value: TWIAImageFormat): Boolean
833834
Result:= False;
834835

835836
for i:=Low(TWIAImageFormat) to High(TWIAImageFormat) do
836-
if (WiaImageFormatGUID[i] = AGUID) then
837+
if IsEqualGUID(WiaImageFormatGUID[i], AGUID) then
837838
begin
838839
Value:= i;
839840
Result:= True;

wiapascal_pkg.lpk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
</Optimizations>
1717
</CodeGeneration>
1818
</CompilerOptions>
19-
<Description Value="WIA and STI features for Free Pascal and Delphi"/>
19+
<Description Value="WIA features for Free Pascal and Delphi"/>
2020
<Version Release="2"/>
2121
<Files>
2222
<Item>

0 commit comments

Comments
 (0)