uxtheme/tests: use HRESULT_FROM_WIN32 to check the error codes, not LOWORD.

Reece Dunn msclrhd at googlemail.com
Sun Jul 20 05:47:16 CDT 2008


Using LOWORD to check for HRESULT error codes in the Win32 facility is
not checking the complete return value (a conforming implementation
could simply return the result from GetLastError(), or one of the
winerror.h constants).

This change uses HRESULT_FROM_WIN32 to do the check, ensuring that the
HIWORD part of the HRESULT is also correct.

Tested on Vista.

- Reece
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0003-uxtheme-tests-use-HRESULT_FROM_WIN32-to-check-the-e.txt
Url: http://www.winehq.org/pipermail/wine-patches/attachments/20080720/38d5e99f/attachment-0001.txt 


More information about the wine-patches mailing list