Skip to content

Commit

Permalink
fix uncompress
Browse files Browse the repository at this point in the history
  • Loading branch information
matgr1 committed Jan 6, 2017
1 parent ee3584d commit f104914
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/FreeImage-dotnet-core/FreeImageStaticImports.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2188,9 +2188,9 @@ public static uint ZLibCompress(byte[] target, uint target_size, byte[] source,
public static uint ZLibUncompress(byte[] target, uint target_size, byte[] source, uint source_size)
{
if (!IsLinux)
return FreeImageStaticImportsDefault.ZLibCompress(target, target_size, source, source_size);
return FreeImageStaticImportsDefault.ZLibUncompress(target, target_size, source, source_size);
else
return FreeImageStaticImportsLinux.ZLibCompress(target, target_size, source, source_size);
return FreeImageStaticImportsLinux.ZLibUncompress(target, target_size, source, source_size);
}

/// <summary>
Expand Down

0 comments on commit f104914

Please sign in to comment.