windowscodecs/tests: Fix crash introduced with eaf394a9ac
.
This commit is contained in:
parent
dd07baa824
commit
b1d9b7ee2a
|
@ -179,7 +179,7 @@ static const IWICBitmapSourceVtbl BitmapTestSrc_Vtbl = {
|
||||||
|
|
||||||
static void CreateTestBitmap(const bitmap_data *data, BitmapTestSrc **This)
|
static void CreateTestBitmap(const bitmap_data *data, BitmapTestSrc **This)
|
||||||
{
|
{
|
||||||
*This = HeapAlloc(GetProcessHeap(), 0, sizeof(*This));
|
*This = HeapAlloc(GetProcessHeap(), 0, sizeof(**This));
|
||||||
|
|
||||||
if (*This)
|
if (*This)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue