Skip to content

Commit 738ef12

Browse files
author
Dirk Lemstra
committed
Fixed return value of method.
1 parent cb8bfd1 commit 738ef12

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Source/Magick.NET.Native/Exceptions/MagickExceptionHelper.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ static inline size_t AreExceptionsEqual(const ExceptionInfo *a, const ExceptionI
2020
if ((a->severity != b->severity) ||
2121
(LocaleCompare(a->reason, b->reason) != 0) ||
2222
(LocaleCompare(a->description, b->description) != 0))
23-
return MagickTrue;
23+
return MagickFalse;
2424

25-
return MagickFalse;
25+
return MagickTrue;
2626
}
2727

2828
MAGICK_NET_EXPORT const char *MagickExceptionHelper_Description(const ExceptionInfo *instance)
@@ -54,7 +54,7 @@ MAGICK_NET_EXPORT const ExceptionInfo *MagickExceptionHelper_Related(const Excep
5454
while (index > 0)
5555
{
5656
p = (const ExceptionInfo *)GetValueFromLinkedList((LinkedListInfo *)instance->exceptions, --index);
57-
if (AreExceptionsEqual(p, q) != MagickFalse)
57+
if (AreExceptionsEqual(p, q) == MagickFalse)
5858
{
5959
if (count == idx)
6060
return p;
@@ -86,7 +86,7 @@ MAGICK_NET_EXPORT size_t MagickExceptionHelper_RelatedCount(const ExceptionInfo
8686
while (index > 0)
8787
{
8888
p = (const ExceptionInfo *)GetValueFromLinkedList((LinkedListInfo *)instance->exceptions, --index);
89-
if (AreExceptionsEqual(p, q) != MagickFalse)
89+
if (AreExceptionsEqual(p, q) == MagickFalse)
9090
{
9191
q = p;
9292
count++;

0 commit comments

Comments
 (0)