[PATCH] windowscodecs: Fix an MSVC warning about pNumericRepresentation.

Serge Gautherie winehq-git_serge_180711 at gautherie.fr
Fri Jul 27 18:06:21 CDT 2018


On 26/07/2018 22:32, Vincent Povirk wrote:

> BTW, WICPixelFormatNumericRepresentation is DWORD-sized (and if not we
> have a binary compatibility problem), so it should be OK to cast the
> pointer.

According to WikiPedia, "C exposes the integer representation of 
enumeration values ...". As in enum type is somewhat obscure.
https://en.wikipedia.org/wiki/Enumerated_type#C

To be on the extra-safe/explicit side, I would use an intermediate DWORD.

-- 



More information about the wine-devel mailing list