diff --git a/Source/UnrealLibretroEditor/miniz/miniz.c b/Source/UnrealLibretroEditor/miniz/miniz.c index c197c18..8d0032f 100644 --- a/Source/UnrealLibretroEditor/miniz/miniz.c +++ b/Source/UnrealLibretroEditor/miniz/miniz.c @@ -3068,7 +3068,7 @@ static WCHAR* mz_utf8z_to_widechar(const char* str) { int reqChars = MultiByteToWideChar(CP_UTF8, 0, str, -1, NULL, 0); WCHAR* wStr = (WCHAR*)malloc(reqChars * sizeof(WCHAR)); - MultiByteToWideChar(CP_UTF8, 0, str, -1, wStr, sizeof(WCHAR) * reqChars); + MultiByteToWideChar(CP_UTF8, 0, str, -1, wStr, reqChars); return wStr; } diff --git a/Source/UnrealLibretroEditor/miniz/miniz.h b/Source/UnrealLibretroEditor/miniz/miniz.h index 35c740c..9fcfffc 100644 --- a/Source/UnrealLibretroEditor/miniz/miniz.h +++ b/Source/UnrealLibretroEditor/miniz/miniz.h @@ -275,10 +275,10 @@ enum MZ_DEFAULT_COMPRESSION = -1 }; -#define MZ_VERSION "11.0.1" -#define MZ_VERNUM 0xB001 +#define MZ_VERSION "11.0.2" +#define MZ_VERNUM 0xB002 #define MZ_VER_MAJOR 11 -#define MZ_VER_MINOR 1 +#define MZ_VER_MINOR 2 #define MZ_VER_REVISION 0 #define MZ_VER_SUBREVISION 0