Fix crash on startup due to sound initialization

Of course `WavpackOpenFileInputEx` is subtly incompatible to
`WavpackOpenFileInputEx64` in that it requires the userdata for the main
steam to be nonnull.

Fixes #1041.
This commit is contained in:
heinrich5991 2018-02-18 12:45:03 +01:00
parent ca22f08dc4
commit f7b7054152

View file

@ -521,7 +521,7 @@ int CSound::DecodeWV(int SampleID, const void *pData, unsigned DataSize)
Callback.get_pos = GetPos;
Callback.push_back_byte = PushBackByte;
Callback.read_bytes = ReadData;
pContext = WavpackOpenFileInputEx(&Callback,0, 0, aError, 0, 0);
pContext = WavpackOpenFileInputEx(&Callback, (void *)1, 0, aError, 0, 0);
#else
pContext = WavpackOpenFileInput(ReadDataOld, aError);
#endif