avifil32/tests: Remove useless variable assignments (LLVM/Clang).
This commit is contained in:
parent
4fd76b0995
commit
0d258b4737
|
@ -232,11 +232,7 @@ static void test_EditStreamSetInfo(void)
|
||||||
hres = CreateEditableStream(&stream, NULL);
|
hres = CreateEditableStream(&stream, NULL);
|
||||||
ok(hres == AVIERR_OK, "got 0x%08X, expected AVIERR_OK\n", hres);
|
ok(hres == AVIERR_OK, "got 0x%08X, expected AVIERR_OK\n", hres);
|
||||||
|
|
||||||
|
/* Size parameter is somehow checked (notice the crash with size=-1 below) */
|
||||||
if(0) /* Crashing - first parameter not checked */
|
|
||||||
hres = EditStreamSetInfo(NULL, &info, sizeof(AVISTREAMINFO) );
|
|
||||||
|
|
||||||
/* Size parameter is somehow checked (notice the crash with size=-1 below) */
|
|
||||||
hres = EditStreamSetInfo(stream, NULL, 0);
|
hres = EditStreamSetInfo(stream, NULL, 0);
|
||||||
ok( hres == AVIERR_BADSIZE, "got 0x%08X, expected AVIERR_BADSIZE\n", hres);
|
ok( hres == AVIERR_BADSIZE, "got 0x%08X, expected AVIERR_BADSIZE\n", hres);
|
||||||
|
|
||||||
|
@ -244,11 +240,14 @@ static void test_EditStreamSetInfo(void)
|
||||||
ok( hres == AVIERR_BADSIZE, "got 0x%08X, expected AVIERR_BADSIZE\n", hres);
|
ok( hres == AVIERR_BADSIZE, "got 0x%08X, expected AVIERR_BADSIZE\n", hres);
|
||||||
|
|
||||||
if(0)
|
if(0)
|
||||||
{ /* Crashing - second parameter not checked */
|
{
|
||||||
hres = EditStreamSetInfo(stream, NULL, sizeof(AVISTREAMINFO) );
|
/* Crashing - first parameter not checked */
|
||||||
|
EditStreamSetInfo(NULL, &info, sizeof(AVISTREAMINFO) );
|
||||||
|
|
||||||
hres = EditStreamSetInfo(stream, NULL, -1);
|
/* Crashing - second parameter not checked */
|
||||||
ok( hres == AVIERR_BADSIZE, "got 0x%08X, expected AVIERR_BADSIZE\n", hres);
|
EditStreamSetInfo(stream, NULL, sizeof(AVISTREAMINFO) );
|
||||||
|
|
||||||
|
EditStreamSetInfo(stream, NULL, -1);
|
||||||
}
|
}
|
||||||
|
|
||||||
hres = AVIStreamInfo(stream, &info, sizeof(AVISTREAMINFO) );
|
hres = AVIStreamInfo(stream, &info, sizeof(AVISTREAMINFO) );
|
||||||
|
|
Loading…
Reference in New Issue