Index: reactos/dll/win32/setupapi/misc.c =================================================================== --- reactos/dll/win32/setupapi/misc.c (revision 57921) +++ reactos/dll/win32/setupapi/misc.c (working copy) @@ -1491,7 +1491,7 @@ return ERROR_INVALID_PARAMETER; ret = SetupGetFileCompressionInfoExW( source, NULL, 0, &required, NULL, NULL, NULL ); - if (!(actual_name = MyMalloc( required ))) return ERROR_NOT_ENOUGH_MEMORY; + if (!(actual_name = MyMalloc( required*sizeof(WCHAR) ))) return ERROR_NOT_ENOUGH_MEMORY; ret = SetupGetFileCompressionInfoExW( source, actual_name, required, &required, source_size, target_size, type );