Fix window result and pedantic error (#302)
* Fix result for close button in WindowBox * Fix pedantic error, void* cast
This commit is contained in:
parent
89f9d94c6b
commit
848569ce33
@ -4174,7 +4174,7 @@ static void GuiLoadStyleFromMemory(const unsigned char *fileData, int dataSize)
|
|||||||
if ((recsDataCompressedSize > 0) && (recsDataCompressedSize != recsDataSize))
|
if ((recsDataCompressedSize > 0) && (recsDataCompressedSize != recsDataSize))
|
||||||
{
|
{
|
||||||
// Recs data is compressed, uncompress it
|
// Recs data is compressed, uncompress it
|
||||||
unsigned char *recsDataCompressed = (unsigned char*)RAYGUI_MALLOC(recsDataCompressedSize);
|
unsigned char *recsDataCompressed = (unsigned char *)RAYGUI_MALLOC(recsDataCompressedSize);
|
||||||
|
|
||||||
memcpy(recsDataCompressed, fileDataPtr, recsDataCompressedSize);
|
memcpy(recsDataCompressed, fileDataPtr, recsDataCompressedSize);
|
||||||
fileDataPtr += recsDataCompressedSize;
|
fileDataPtr += recsDataCompressedSize;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user