You've already forked wine-staging
mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2025-12-15 08:03:15 -08:00
Updated mailing-list-patches and loader-KeyboardLayouts patchset
Just some cleanups, no actual code changes.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user