Commit ed1f8552 authored by Cheng Sun's avatar Cheng Sun Committed by Jean-Baptiste Kempf

Windows windowless: Fix compatibility with Chrome

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent e617d16f
......@@ -45,7 +45,7 @@ bool VlcWindowlessWin::handle_event(void *event)
switch (npevent->event) {
case WM_PAINT:
BOOL ret;
HDC hDC = reinterpret_cast<HDC> (npwindow.window);
HDC hDC = reinterpret_cast<HDC> (npevent->wParam);
if (!hDC) {
fprintf(stderr, "NULL HDC given by browser\n");
return false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment