[FORMATTING] Remove trailing whitespace. Addendum to 34593d93.

Excluded: 3rd-party code (incl. wine) and most of the win32ss.
This commit is contained in:
Hermès Bélusca-Maïto 2021-09-13 03:33:14 +02:00
parent bbabe2489e
commit 9393fc320e
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0
701 changed files with 14685 additions and 14693 deletions

View file

@ -5,30 +5,30 @@ START_TEST(CreateIconFromResourceEx)
{
HCURSOR hcur1, hcur2;
HMODULE hMod;
HRSRC hResource; // handle to FindResource
HRSRC hMem; // handle to LoadResource
HRSRC hResource; // handle to FindResource
HRSRC hMem; // handle to LoadResource
BYTE *lpResource; // pointer to resource data
DWORD err;
int wResId;
hMod = GetModuleHandle(NULL);
ok(hMod != NULL, "\n");
/* Create a shared cursor */
hcur1 = LoadCursor(hMod, "TESTCURSOR");
ok(hcur1 != NULL, "\n");
/* Create it manually using CreateIconFromResourceEx */
hResource = FindResourceA(hMod,
"TESTCURSOR",
hResource = FindResourceA(hMod,
"TESTCURSOR",
RT_GROUP_CURSOR);
ok(hResource != NULL, "\n");
hMem = LoadResource(hMod, hResource);
hMem = LoadResource(hMod, hResource);
ok(hMem != NULL, "\n");
lpResource = LockResource(hMem);
lpResource = LockResource(hMem);
ok(lpResource != NULL, "\n");
/* MSDN states that LR_SHARED permits to not load twice the same cursor again.
* But CreateIconFromResourceEx still returns two different handles */
hcur2 = CreateIconFromResourceEx(lpResource, SizeofResource(hMod, hResource), FALSE, 0x00030000, 0, 0, LR_SHARED);
@ -37,7 +37,7 @@ START_TEST(CreateIconFromResourceEx)
hcur1 = CreateIconFromResourceEx(lpResource, SizeofResource(hMod, hResource), FALSE, 0x00030000, 0, 0, LR_SHARED);
ok(hcur1 != NULL, "\n");
ok(hcur2 != hcur1, "\n");
/* Try to destroy them multiple times (see DestroyCursor test) */
ok(DestroyCursor(hcur1), "\n");
ok(DestroyCursor(hcur1), "\n");
@ -59,12 +59,12 @@ START_TEST(CreateIconFromResourceEx)
hResource = FindResourceA(hMod, MAKEINTRESOURCEA(wResId), RT_CURSOR);
ok(hResource != NULL, "\n");
hMem = LoadResource(hMod, hResource);
hMem = LoadResource(hMod, hResource);
ok(hMem != NULL, "\n");
lpResource = LockResource(hMem);
lpResource = LockResource(hMem);
ok(lpResource != NULL, "\n");
/* MSDN states that LR_SHARED permits to not load twice the same cursor again.
* But CreateIconFromResourceEx still returns two different handles */
hcur2 = CreateIconFromResourceEx(lpResource, SizeofResource(hMod, hResource), FALSE, 0x00030000, 0, 0, LR_SHARED);
@ -73,7 +73,7 @@ START_TEST(CreateIconFromResourceEx)
hcur1 = CreateIconFromResourceEx(lpResource, SizeofResource(hMod, hResource), FALSE, 0x00030000, 0, 0, LR_SHARED);
ok(hcur1 != NULL, "\n");
ok(hcur2 != hcur1, "\n");
/* Try to destroy them multiple times (see DestroyCursor test) */
ok(DestroyCursor(hcur1), "\n");
ok(DestroyCursor(hcur1), "\n");