wined3d: Don't leak the HDC of an invalid context in context_update_window().
commit03ca2b2932b38e0b79592787e32013c1e5ae66bd
authorKen Thomases <ken@codeweavers.com>
Mon, 24 Mar 2014 03:45:44 +0000 (23 22:45 -0500)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 24 Mar 2014 19:20:10 +0000 (24 20:20 +0100)
treefd2e335312774d7728e15da3e1fa6281d1c4d647
parente5e86776664a19aeb009fb27f5fe6efcf04494ba
wined3d: Don't leak the HDC of an invalid context in context_update_window().

If context_set_gl_context() fails, it marks the context as invalid.  It still
has an HDC, though, and context_update_window() would lose the reference to
it.
dlls/wined3d/context.c