Skip to content

Commit

Permalink
fix: AssertFactory.QueryInterface returns S_OK when successful (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
deltics authored Mar 21, 2021
1 parent 492b5e5 commit da29d07
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion GitVersion.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
mode: ContinuousDeployment
increment: None
next-version: 2.9.0
next-version: 2.9.1
branches:
master:
mode: ContinuousDelivery
Expand Down
7 changes: 5 additions & 2 deletions src/Deltics.Smoketest.Assertions.Factory.pas
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,11 @@ TTestRunHelper = class(TTestRun);
if GuidsAreEqual(reg.IID, aIID) then
begin
factory := reg.FactoryClass.Create(ValueName);
factory.GetInterface(aIID, aIntf);
EXIT;
if factory.GetInterface(aIID, aIntf) then
begin
result := S_OK;
EXIT;
end;
end;
end;

Expand Down

0 comments on commit da29d07

Please sign in to comment.