=?UTF-8?Q?Andr=C3=A9=20Hentschel=20?=: kernel32: Make GetTickCount and GetTickCount64 hotpatchable.

Alexandre Julliard julliard at wine.codeweavers.com
Thu Dec 11 15:22:15 CST 2014


Module: wine
Branch: master
Commit: 1005f3a6fa9d1aeb3e0e912815d12f7b1ed94b0c
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=1005f3a6fa9d1aeb3e0e912815d12f7b1ed94b0c

Author: André Hentschel <nerv at dawncrow.de>
Date:   Thu Dec 11 00:06:30 2014 +0100

kernel32: Make GetTickCount and GetTickCount64 hotpatchable.

---

 dlls/kernel32/kernel_main.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/kernel32/kernel_main.c b/dlls/kernel32/kernel_main.c
index 6afc1cb..e24100b 100644
--- a/dlls/kernel32/kernel_main.c
+++ b/dlls/kernel32/kernel_main.c
@@ -179,7 +179,7 @@ INT WINAPI MulDiv( INT nMultiplicand, INT nMultiplier, INT nDivisor)
 /******************************************************************************
  *           GetTickCount64       (KERNEL32.@)
  */
-ULONGLONG WINAPI GetTickCount64(void)
+ULONGLONG WINAPI DECLSPEC_HOTPATCH GetTickCount64(void)
 {
     LARGE_INTEGER counter, frequency;
 
@@ -202,7 +202,7 @@ ULONGLONG WINAPI GetTickCount64(void)
  * NOTES
  *  The value returned will wrap around every 2^32 milliseconds.
  */
-DWORD WINAPI GetTickCount(void)
+DWORD WINAPI DECLSPEC_HOTPATCH GetTickCount(void)
 {
     return GetTickCount64();
 }




More information about the wine-cvs mailing list