fixed incorrect sizeof() expression in CvCaptureCAM_VFW::open
This commit is contained in:
parent
d2b093d809
commit
3c86788b1f
@ -406,7 +406,7 @@ bool CvCaptureCAM_VFW::open( int wIndex )
|
|||||||
fourcc = (DWORD)-1;
|
fourcc = (DWORD)-1;
|
||||||
|
|
||||||
memset( &caps, 0, sizeof(caps));
|
memset( &caps, 0, sizeof(caps));
|
||||||
capDriverGetCaps( hWndC, &caps, sizeof(&caps));
|
capDriverGetCaps( hWndC, &caps, sizeof(caps));
|
||||||
::MoveWindow( hWndC, 0, 0, 320, 240, TRUE );
|
::MoveWindow( hWndC, 0, 0, 320, 240, TRUE );
|
||||||
capSetUserData( hWndC, (size_t)this );
|
capSetUserData( hWndC, (size_t)this );
|
||||||
capSetCallbackOnFrame( hWndC, frameCallback );
|
capSetCallbackOnFrame( hWndC, frameCallback );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user