highgui: fix broken waitKey() condition in window_w32

pull/13053/head
berak 7 years ago
parent d9b8a9d90e
commit cae2a53563
  1. 2
      modules/highgui/src/window_w32.cpp

@ -1976,7 +1976,7 @@ cvWaitKey( int delay )
MSG message;
int is_processed = 0;
if( delay <= 0 )
if( (delay <= 0) && hg_windows)
GetMessage(&message, 0, 0, 0);
else if( PeekMessage(&message, 0, 0, 0, PM_REMOVE) == FALSE )
{

Loading…
Cancel
Save