1
0
Fork 0
mirror of synced 2025-03-07 03:53:26 +01:00
wine/libs
Zebediah Figura b480fb8695 libwine: Avoid comparing the result of pointer arithmetic to zero.
gcc warns about this:

../wine/libs/wine/mmap.c: In function ‘wine_mmap_add_reserved_area_obsolete’:
../wine/libs/wine/mmap.c:504:9: error: the comparison will always evaluate as ‘true’ for the pointer operand in ‘(char *)addr + (sizetype)size’ must not be NULL [-Werror=address]
  504 |     if (!((char *)addr + size)) size--;  /* avoid wrap-around */
      |         ^

(cherry picked from commit d17fe0a792)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
2023-03-24 11:39:03 +01:00
..
adsiid adsiid: Move to the libs directory. 2021-10-11 11:44:02 +02:00
dmoguids dmoguids: Move to the libs directory. 2021-10-11 11:44:02 +02:00
dxerr8 dxerr8: Move to the libs directory. 2021-10-11 11:44:02 +02:00
dxerr9 dxerr9: Move to the libs directory. 2021-10-11 11:44:02 +02:00
dxguid dxguid: Move to the libs directory. 2021-10-11 11:47:51 +02:00
faudio faudio: Return PCM format from IXAudio27_GetDeviceDetails. 2021-12-23 22:57:01 +01:00
gsm libs: Import upstream code from gsm 1.0.19. 2021-10-20 16:16:07 +02:00
jpeg libs: Import upstream code from libjpeg 9d. 2021-10-19 11:33:05 +02:00
jxr include: Don't define __in and __out. 2021-11-03 21:06:48 +01:00
lcms2 libs: Import code from upstream lcms2 2.12. 2021-10-19 11:33:05 +02:00
mfuuid mfuuid: Move to the libs directory. 2021-10-11 11:47:53 +02:00
mpg123 mpg123: Disable the large file wrappers. 2021-12-09 18:43:50 +01:00
png libs: Import upstream code from libpng 1.6.37. 2021-10-18 14:32:42 +02:00
strmbase strmbase: Try sink types before source types. 2021-12-23 09:59:00 +01:00
strmiids strmiids: Move to the libs directory. 2021-10-11 11:47:53 +02:00
tiff libs: Import upstream code from libtiff 4.3.0. 2021-10-19 11:33:05 +02:00
uuid uuid: Move to the libs directory. 2021-10-11 11:47:53 +02:00
wbemuuid wbemuuid: Move to the libs directory. 2021-10-11 11:47:53 +02:00
wine libwine: Avoid comparing the result of pointer arithmetic to zero. 2023-03-24 11:39:03 +01:00
wmcodecdspuuid wmcodecdspuuid: Move to the libs directory. 2021-10-11 11:47:53 +02:00
xml2 xml2: Use MSVC constants for NaN and infinity. 2021-11-10 14:05:39 +01:00
xslt xslt: Build with LIBXSLT_STATIC, fix building with clang in MSVC mode. 2021-10-21 11:22:00 +02:00
zlib libs: Import upstream code from zlib 1.2.11. 2021-10-18 11:07:38 +02:00