https://bugs.winehq.org/show_bug.cgi?id=40136
--- Comment #3 from Nikolay Sivov bunglehead@gmail.com --- Why is that wrong? Function validates its argument, which can be anything. Whether enum integer type is signed or not is compiler specific, for gcc and this particular enum it will be unsigned int most likely, so more reliable check would be to use (unsigned int)multisample_type > WINED3D_MULTISAMPLE_16_SAMPLES.