From f7de52878808e185f49106fb978ade25bc7cc758 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20M=C3=BCller?= Date: Thu, 9 Jan 2014 03:03:04 +0100 Subject: [PATCH] Add SetTimer patch --- ...minimum-SetTimer-interval-from-15-to.patch | 25 +++++++++++++++++++ .../0b21d7ac-0387-4493-aa38-fbafe3e749f5.def | 3 +++ patches/patch-list.patch | 3 ++- 3 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 patches/98-Miscellaneous/0002-user32-Decrease-minimum-SetTimer-interval-from-15-to.patch create mode 100644 patches/98-Miscellaneous/0b21d7ac-0387-4493-aa38-fbafe3e749f5.def diff --git a/patches/98-Miscellaneous/0002-user32-Decrease-minimum-SetTimer-interval-from-15-to.patch b/patches/98-Miscellaneous/0002-user32-Decrease-minimum-SetTimer-interval-from-15-to.patch new file mode 100644 index 00000000..5614df5e --- /dev/null +++ b/patches/98-Miscellaneous/0002-user32-Decrease-minimum-SetTimer-interval-from-15-to.patch @@ -0,0 +1,25 @@ +From ed6d82faea2efb04dda99738f8eea9ac8c9de1df Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Michael=20M=C3=BCller?= +Date: Thu, 9 Jan 2014 02:54:31 +0100 +Subject: user32: Decrease minimum SetTimer interval from 15 to 5 ms + +--- + dlls/user32/message.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/dlls/user32/message.c b/dlls/user32/message.c +index 2cd1472..8a4aa7d 100644 +--- a/dlls/user32/message.c ++++ b/dlls/user32/message.c +@@ -4407,7 +4407,7 @@ UINT_PTR WINAPI SetTimer( HWND hwnd, UINT_PTR id, UINT timeout, TIMERPROC proc ) + + /* MSDN states that the minimum timeout should be USER_TIMER_MINIMUM (10.0 ms), but testing + * indicates that the true minimum is closer to 15.6 ms. */ +- timeout = min( max( 15, timeout ), USER_TIMER_MAXIMUM ); ++ timeout = min( max( 5, timeout ), USER_TIMER_MAXIMUM ); + + SERVER_START_REQ( set_win_timer ) + { +-- +1.8.3.2 + diff --git a/patches/98-Miscellaneous/0b21d7ac-0387-4493-aa38-fbafe3e749f5.def b/patches/98-Miscellaneous/0b21d7ac-0387-4493-aa38-fbafe3e749f5.def new file mode 100644 index 00000000..23e43c45 --- /dev/null +++ b/patches/98-Miscellaneous/0b21d7ac-0387-4493-aa38-fbafe3e749f5.def @@ -0,0 +1,3 @@ +Revision: 1 +Author: Michael Müller +Title: Decrease minimum SetTimer interval from 15 to 5 ms. diff --git a/patches/patch-list.patch b/patches/patch-list.patch index e6f35028..0f98d7b5 100644 --- a/patches/patch-list.patch +++ b/patches/patch-list.patch @@ -33,7 +33,7 @@ diff --git a/libs/wine/config.c b/libs/wine/config.c index a273502..5fa0cd5 100644 --- a/libs/wine/config.c +++ b/libs/wine/config.c -@@ -478,6 +478,29 @@ const char *wine_get_version(void) +@@ -478,6 +478,30 @@ const char *wine_get_version(void) return PACKAGE_VERSION; } @@ -50,6 +50,7 @@ index a273502..5fa0cd5 100644 + { "94186fff-6dbf-44d0-8eb1-2463d1608a0f:1", "Sebastian Lackner", "Update gl_drawable for embedded windows." }, + { "cbe240e8-2c58-430a-b61c-7fbb9d0e1e11:1", "Sebastian Lackner", "Change return value of stub SetNamedPipeHandleState to TRUE." }, + { "00273da7-72f8-4025-9e96-0c2bc95dacdb:2", "Maarten Lankhorst", "Winepulse patches extracted from https://launchpad.net/~mlankhorst/+archive/ppa/+files/wine1.7_1.7.10-0ubuntu1~saucy1.debian.tar.gz." }, ++ { "0b21d7ac-0387-4493-aa38-fbafe3e749f5:1", "Michael Müller", "Decrease minimum SetTimer interval from 15 to 5 ms." }, + { "eec5dea8-879d-417b-9f97-364deaae6576:1", "Sebastian Lackner", "Add tests for IVMRMonitorConfig." }, + { NULL, NULL, NULL } +};