- Timestamp:
- Jul 15, 2001, 4:58:12 PM (24 years ago)
- Location:
- trunk/src/user32
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/initterm.cpp
r5554 r6339 26 26 #define INCL_DOSPROCESS 27 27 #define INCL_DOSSEMAPHORES 28 #define INCL_DOSMISC 28 29 #include <os2wrap.h> //Odin32 OS/2 api wrappers 29 30 #include <stdlib.h> … … 61 62 } 62 63 DWORD hInstanceUser32 = 0; 64 BOOL fVersionWarp3 = FALSE; 63 65 64 66 /****************************************************************************/ … … 74 76 size_t i; 75 77 APIRET rc; 78 ULONG version[2]; 76 79 77 80 /*-------------------------------------------------------------------------*/ … … 95 98 96 99 dprintf(("user32 init %s %s (%x)", __DATE__, __TIME__, DLLENTRYPOINT_NAME)); 100 101 rc = DosQuerySysInfo(QSV_VERSION_MAJOR, QSV_VERSION_MINOR, version, sizeof(version)); 102 if(rc == 0){ 103 if(version[0] >= 20 && version[1] <= 30) { 104 fVersionWarp3 = TRUE; 105 } 106 } 97 107 98 108 /*******************************************************************/ -
trunk/src/user32/initterm.h
r5482 r6339 1 /* $Id: initterm.h,v 1. 4 2001-04-05 09:31:27sandervl Exp $ */1 /* $Id: initterm.h,v 1.5 2001-07-15 14:58:06 sandervl Exp $ */ 2 2 3 3 /* … … 14 14 15 15 extern DWORD hInstanceUser32; 16 extern BOOL fVersionWarp3; 16 17 17 18 //winicon.cpp -
trunk/src/user32/user32.cpp
r6328 r6339 1 /* $Id: user32.cpp,v 1.10 8 2001-07-14 09:21:46sandervl Exp $ */1 /* $Id: user32.cpp,v 1.109 2001-07-15 14:58:07 sandervl Exp $ */ 2 2 3 3 /* … … 49 49 #include <win32wnd.h> 50 50 #include <winuser.h> 51 #include "initterm.h" 51 52 52 53 #define DBG_LOCALLOG DBG_user32 … … 990 991 dprintf(("USER32: WaitForInputIdle %x %d\n", hProcess, dwTimeOut)); 991 992 992 return O32_WaitForInputIdle(hProcess, dwTimeOut); 993 if(fVersionWarp3) { 994 Sleep(1000); 995 return 0; 996 } 997 else return O32_WaitForInputIdle(hProcess, dwTimeOut); 993 998 } 994 999 -
trunk/src/user32/winkeyboard.cpp
r6254 r6339 1 /* $Id: winkeyboard.cpp,v 1.1 3 2001-07-08 15:51:43sandervl Exp $ */1 /* $Id: winkeyboard.cpp,v 1.14 2001-07-15 14:58:12 sandervl Exp $ */ 2 2 /* 3 3 * Win32 <-> PM key translation … … 16 16 #include <pmscan.h> 17 17 #include <winuser32.h> 18 #include "initterm.h" 18 19 19 20 #define DBG_LOCALLOG DBG_winkeyboard … … 943 944 { 944 945 dprintf2(("USER32: GetAsyncKeyState %x", nVirtKey)); 945 return O32_GetAsyncKeyState(nVirtKey); 946 if(fVersionWarp3) {//Not present in Warp 3's PMWINX 947 return O32_GetKeyState(nVirtKey); 948 } 949 else return O32_GetAsyncKeyState(nVirtKey); 946 950 } 947 951 //******************************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.