https://git.reactos.org/?p=reactos.git;a=commitdiff;h=82c7571e433f9e1b43153a...
commit 82c7571e433f9e1b43153aa077a524414d1747d9 Author: Katayama Hirofumi MZ katayama.hirofumi.mz@gmail.com AuthorDate: Sat Jan 26 19:10:23 2019 +0900 Commit: GitHub noreply@github.com CommitDate: Sat Jan 26 19:10:23 2019 +0900
[WIN32KNT_APITEST] NtGdiSetBitmapBits: Expand tabs to spaces (#1306)
Expand Tabs to Spaces in NtGdiSetBitmapBits testcase. Follow-up of #1304. --- .../apitests/win32nt/ntgdi/NtGdiSetBitmapBits.c | 78 +++++++++++----------- 1 file changed, 39 insertions(+), 39 deletions(-)
diff --git a/modules/rostests/apitests/win32nt/ntgdi/NtGdiSetBitmapBits.c b/modules/rostests/apitests/win32nt/ntgdi/NtGdiSetBitmapBits.c index e13aabd2e2..2c34b91bc0 100644 --- a/modules/rostests/apitests/win32nt/ntgdi/NtGdiSetBitmapBits.c +++ b/modules/rostests/apitests/win32nt/ntgdi/NtGdiSetBitmapBits.c @@ -9,65 +9,65 @@
START_TEST(NtGdiSetBitmapBits) { - BYTE Bits[50] = {0,1,2,3,4,5,6,7,8,9}; - HBITMAP hBitmap; + BYTE Bits[50] = {0,1,2,3,4,5,6,7,8,9}; + HBITMAP hBitmap; HDC hDC; BITMAPINFO bmi; LPVOID pvBits;
- SetLastError(ERROR_SUCCESS); - ok_long(NtGdiSetBitmapBits(0, 0, 0), 0); - ok_long(GetLastError(), ERROR_SUCCESS); + SetLastError(ERROR_SUCCESS); + ok_long(NtGdiSetBitmapBits(0, 0, 0), 0); + ok_long(GetLastError(), ERROR_SUCCESS);
- /* Test NULL bitnap handle */ - SetLastError(ERROR_SUCCESS); - ok_long(NtGdiSetBitmapBits(0, 5, Bits), 0); - ok_long(GetLastError(), ERROR_INVALID_HANDLE); + /* Test NULL bitnap handle */ + SetLastError(ERROR_SUCCESS); + ok_long(NtGdiSetBitmapBits(0, 5, Bits), 0); + ok_long(GetLastError(), ERROR_INVALID_HANDLE);
- /* Test invalid bitmap handle */ - hBitmap = (HBITMAP)CreatePen(PS_SOLID, 1, RGB(1,2,3)); - SetLastError(ERROR_SUCCESS); - ok_long(NtGdiSetBitmapBits(hBitmap, 5, Bits), 0); - ok_long(GetLastError(), ERROR_INVALID_HANDLE); - DeleteObject(hBitmap); + /* Test invalid bitmap handle */ + hBitmap = (HBITMAP)CreatePen(PS_SOLID, 1, RGB(1,2,3)); + SetLastError(ERROR_SUCCESS); + ok_long(NtGdiSetBitmapBits(hBitmap, 5, Bits), 0); + ok_long(GetLastError(), ERROR_INVALID_HANDLE); + DeleteObject(hBitmap);
- hBitmap = CreateBitmap(3, 3, 1, 8, NULL); - SetLastError(ERROR_SUCCESS); + hBitmap = CreateBitmap(3, 3, 1, 8, NULL); + SetLastError(ERROR_SUCCESS);
- /* test NULL pointer and count buffer size != 0 */ - ok_long(NtGdiSetBitmapBits(hBitmap, 5, NULL), 0); + /* test NULL pointer and count buffer size != 0 */ + ok_long(NtGdiSetBitmapBits(hBitmap, 5, NULL), 0);
- /* test NULL pointer and buffer size == 0*/ - ok_long(NtGdiSetBitmapBits(hBitmap, 0, NULL), 0); + /* test NULL pointer and buffer size == 0*/ + ok_long(NtGdiSetBitmapBits(hBitmap, 0, NULL), 0);
- /* test bad pointer */ - ok_long(NtGdiSetBitmapBits(hBitmap, 5, (PBYTE)0x500), 0); + /* test bad pointer */ + ok_long(NtGdiSetBitmapBits(hBitmap, 5, (PBYTE)0x500), 0);
- /* Test if we can set a number of bytes between lines */ - ok_long(NtGdiSetBitmapBits(hBitmap, 5, Bits), 5); + /* Test if we can set a number of bytes between lines */ + ok_long(NtGdiSetBitmapBits(hBitmap, 5, Bits), 5);
- /* Test alignment */ - ok_long(NtGdiSetBitmapBits(hBitmap, 4, Bits+1), 4); + /* Test alignment */ + ok_long(NtGdiSetBitmapBits(hBitmap, 4, Bits+1), 4);
- /* Test 1 byte too much */ - ok_long(NtGdiSetBitmapBits(hBitmap, 10, Bits), 10); + /* Test 1 byte too much */ + ok_long(NtGdiSetBitmapBits(hBitmap, 10, Bits), 10);
- /* Test one row too much */ - ok_long(NtGdiSetBitmapBits(hBitmap, 12, Bits), 12); + /* Test one row too much */ + ok_long(NtGdiSetBitmapBits(hBitmap, 12, Bits), 12);
- ok_long(NtGdiSetBitmapBits(hBitmap, 13, Bits), 12); + ok_long(NtGdiSetBitmapBits(hBitmap, 13, Bits), 12);
- ok_long(NtGdiSetBitmapBits(hBitmap, 100, Bits), 12); + ok_long(NtGdiSetBitmapBits(hBitmap, 100, Bits), 12);
- /* Test huge bytes count */ - ok_long(NtGdiSetBitmapBits(hBitmap, 12345678, Bits), 0); + /* Test huge bytes count */ + ok_long(NtGdiSetBitmapBits(hBitmap, 12345678, Bits), 0);
- /* Test negative bytes count */ - ok_long(NtGdiSetBitmapBits(hBitmap, -5, Bits), 0); + /* Test negative bytes count */ + ok_long(NtGdiSetBitmapBits(hBitmap, -5, Bits), 0);
- ok_long(GetLastError(), ERROR_SUCCESS); + ok_long(GetLastError(), ERROR_SUCCESS);
- DeleteObject(hBitmap); + DeleteObject(hBitmap);
/* ------------------------- */