Updated mailing-list-patches and loader-KeyboardLayouts patchset

Just some cleanups, no actual code changes.
This commit is contained in:
Alistair Leslie-Hughes
2019-07-16 11:24:30 +10:00
parent e298cdfaf9
commit 9092f3922a
3 changed files with 15 additions and 9 deletions

View File

@@ -69,7 +69,7 @@ index d0dc4a8bcf..4a99d8d4e9 100644
+static void test_GetKeyboardLayoutList(void)
+{
+ int cnt, cnt2;
+ HKL *layouts;
+ HKL *layouts;
+ ULONG_PTR baselayout;
+ LANGID langid;
+
@@ -83,11 +83,11 @@ index d0dc4a8bcf..4a99d8d4e9 100644
+ cnt = GetKeyboardLayoutList(0, NULL);
+ /* Most users will not have more than a few keyboard layouts installed at a time. */
+ ok(cnt > 0 && cnt < 10, "Layout count %d\n", cnt);
+ if (cnt > 0)
+ {
+ layouts = HeapAlloc(GetProcessHeap(), 0, sizeof(*layouts) * cnt );
+ if (cnt > 0)
+ {
+ layouts = HeapAlloc(GetProcessHeap(), 0, sizeof(*layouts) * cnt );
+
+ cnt2 = GetKeyboardLayoutList(cnt, layouts);
+ cnt2 = GetKeyboardLayoutList(cnt, layouts);
+ ok(cnt == cnt2, "wrong value %d!=%d\n", cnt, cnt2);
+ for(cnt = 0; cnt < cnt2; cnt++)
+ {
@@ -96,8 +96,8 @@ index d0dc4a8bcf..4a99d8d4e9 100644
+ }
+ ok(cnt < cnt2, "Didnt find current keyboard\n");
+
+ HeapFree(GetProcessHeap(), 0, layouts);
+ }
+ HeapFree(GetProcessHeap(), 0, layouts);
+ }
+}
+
START_TEST(input)