diff --git a/src/SmolSharp.Ocean/Program.cs b/src/SmolSharp.Ocean/Program.cs index 34b7f02..6f4bac5 100644 --- a/src/SmolSharp.Ocean/Program.cs +++ b/src/SmolSharp.Ocean/Program.cs @@ -145,14 +145,14 @@ static unsafe uint RenderThread(nint hwnd) var compressedFragShader = OceanShader.FragmentShader(); var fragBuffer = Kernel32.GlobalAlloc(default, 8192); nint hDcmp; - ulong fragLength; + nint fragLength; bool success; success = CompressAPI.CreateDecompressor(CompressAlgorithm.MSZip, default, &hDcmp); success = CompressAPI.Decompress( hDcmp, compressedFragShader.AsPointer(), - (ulong)compressedFragShader.Length, + compressedFragShader.Length, fragBuffer, 8192, &fragLength diff --git a/src/SmolSharp.Win32/CompressAPI.cs b/src/SmolSharp.Win32/CompressAPI.cs index b76aa7e..31b9246 100644 --- a/src/SmolSharp.Win32/CompressAPI.cs +++ b/src/SmolSharp.Win32/CompressAPI.cs @@ -16,10 +16,10 @@ public static extern bool CreateDecompressor( public static extern bool Decompress( nint decompressorHandle, void* compressedData, - ulong compressedDataSize, + nint compressedDataSize, void* uncompressedBuffer, nint uncompressedBufferSize, - ulong* uncompressedDataSize + nint* uncompressedDataSize ); }