win87em: always return that a 8087 coprocessor is present.
Rein Klazes
wijn at online.nl
Tue Apr 7 11:36:14 CDT 2009
makes bcalc.exe proceed.
---
dlls/win87em.dll16/win87em.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/win87em.dll16/win87em.c b/dlls/win87em.dll16/win87em.c
index 35a04c4..679b97e 100644
--- a/dlls/win87em.dll16/win87em.c
+++ b/dlls/win87em.dll16/win87em.c
@@ -203,9 +203,9 @@ void WINAPI _fpMath( CONTEXT *context )
context->Eax &= ~0xffff; /* set AX to 0 */
break;
- case 11: /* just returns the installed flag in DX:AX */
+ case 11: /* returns in ax whether a 8087 coprocessor is present, say yes */
context->Edx &= ~0xffff; /* set DX to 0 */
- context->Eax = (context->Eax & ~0xffff) | Installed;
+ context->Eax = (context->Eax & ~0xffff) | 1;
break;
case 12: /* save AX in some internal state var */
--
1.6.2.1
More information about the wine-patches
mailing list