same dll issue for dlls/user/tests/input.c
Jakob Eriksson
jakov at vmlinux.org
Tue May 4 05:50:41 CDT 2004
Prevent Windows 95 from blocking on linking issue
-------------- next part --------------
Index: input.c
===================================================================
RCS file: /home/wine/wine/dlls/user/tests/input.c,v
retrieving revision 1.4
diff -u -r1.4 input.c
--- input.c 18 Jan 2004 22:10:55 -0000 1.4
+++ input.c 4 May 2004 10:48:41 -0000
@@ -203,12 +203,20 @@
*/
void do_test( HWND hwnd, int seqnr, KEV td[] )
{
+ HMODULE module;
+ UINT (*ptr_SendInput) (UINT, INPUT*, size_t);
INPUT inputs[MAXKEYEVENTS];
KMSG expmsg[MAXKEYEVENTS];
MSG msg;
char buf[100];
UINT evtctr=0;
int kmctr, i;
+
+ module = GetModuleHandleA("user32");
+ if (!module) return;
+ ptr_SendInput = GetProcAddress(module, "SendInput");
+ if (!ptr_SendInput) return;
+
buf[0]='\0';
TrackSysKey=0; /* see input.c */
for( i = 0; i < MAXKEYEVENTS; i++) {
@@ -222,7 +230,7 @@
for( kmctr = 0; kmctr < MAXKEYEVENTS && expmsg[kmctr].message; kmctr++)
;
assert( evtctr <= MAXKEYEVENTS );
- assert( evtctr == SendInput(evtctr, &inputs[0], sizeof(INPUT)));
+ assert( evtctr == ptr_SendInput(evtctr, &inputs[0], sizeof(INPUT)));
i = 0;
trace("======== key stroke sequence #%d: %s =============\n",
seqnr + 1, buf);
More information about the wine-patches
mailing list