91{
92 const struct {
97
99
100 {
WIDTH,
HEIGHT, 0,
"bc943d5ab024b8b0118d0a80aa283055d39942b8" },
101
105 { 0, 0, 0, "" },
108
109 {
WIDTH,
HEIGHT/2, 0,
"8b75bf6d54a8645380114fe77505ee0699ffffaa" },
110
112
114 };
116 DWORD src_dib_size, dst_dib_size;
123
125
129 ok(
dib !=
NULL,
"CreateDIBSection failed\n");
131
135 ok(src_bits !=
NULL,
"Can't allocate memory\n");
136 memset(src_bits, 0x88, src_dib_size);
137
139 ok(hdd !=
NULL,
"DrawDibOpen failed\n");
140
143 memset(dst_bits, 0xff, dst_dib_size);
146 0, 0, -1, -1, &src_info.
bmiHeader, src_bits,
149 ok(
r,
"[%u] DrawDibDraw failed, expected success\n",
i);
150 else
151 ok(!
r,
"[%u] DrawDibDraw succeeded, expected failed\n",
i);
153 continue;
154
157 win_skip(
"This platform doesn't support SHA-1 hash\n");
158 continue;
159 }
161 "[%u] got %s, expected %s\n",
164 }
165
167 ok(
r,
"DrawDibClose failed\n");
168
170
172}
int strcmp(const char *String1, const char *String2)
#define HeapFree(x, y, z)
BOOL VFWAPI DrawDibDraw(HDRAWDIB hdd, HDC hdc, INT xDst, INT yDst, INT dxDst, INT dyDst, LPBITMAPINFOHEADER lpbi, LPVOID lpBits, INT xSrc, INT ySrc, INT dxSrc, INT dySrc, UINT wFlags)
BOOL VFWAPI DrawDibClose(HDRAWDIB hdd)
HDRAWDIB VFWAPI DrawDibOpen(void)
GLdouble GLdouble GLdouble r
static void init_bmi(BITMAPINFO *bmi, LONG width, LONG height, DWORD size)
static char * hash_dib(const BITMAPINFO *bmi, const void *bits)
HBITMAP WINAPI CreateDIBSection(HDC hDC, CONST BITMAPINFO *BitmapInfo, UINT Usage, VOID **Bits, HANDLE hSection, DWORD dwOffset)
HGDIOBJ WINAPI SelectObject(_In_ HDC, _In_ HGDIOBJ)
HDC WINAPI CreateCompatibleDC(_In_opt_ HDC hdc)
BOOL WINAPI DeleteDC(_In_ HDC)