Re: opengl32: fix wglCreateContextAttribsARB on nvidia

2009-11-24 Thread Roderick Colenbrander
On Tue, Nov 24, 2009 at 9:10 AM, Dmitry Timoshkov wrote: > "Roderick Colenbrander" wrote: > >> +/* Nvidia converts win32 error codes to (0xc007 << 16) | win32_error_code >> */ >> +#define NVIDIA_HRESULT_FROM_WIN32(x) (HRESULT_FROM_WIN32(x) | 0x4000) > > Using MAKE_HRESULT() with appropriate s

Re: opengl32: fix wglCreateContextAttribsARB on nvidia

2009-11-24 Thread Dmitry Timoshkov
"Roderick Colenbrander" wrote: +/* Nvidia converts win32 error codes to (0xc007 << 16) | win32_error_code */ +#define NVIDIA_HRESULT_FROM_WIN32(x) (HRESULT_FROM_WIN32(x) | 0x4000) Using MAKE_HRESULT() with appropriate severity and facility would be cleaner IMO. -- Dmitry.