[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wine-patches
Subject:    OpenDesktop stub fix
From:       Ian Schmidt <ischmidt () cfl ! rr ! com>
Date:       1999-10-31 3:43:49
[Download RAW message or body]

This patch fixes the OpenDesktop stub to behave like Win9x
(SetLastError(CALL_NOT_SUPPORTED) and return NULL).  This makes QuickTime 4
slightly happier, although it really needs [G|S]etWindowRgn() working in order
to operate properly (any GDI gurus working on that? ;-).

ChangeLog:
    win32/newfns.c:
    Changed OpenDesktop stub to Win9x behavior for QuickTime 4.

-Ian Schmidt
ischmidt@cfl.rr.com



["desktop.diff" (text/plain)]

Index: wine/win32/newfns.c
===================================================================
RCS file: /home/wine/wine/win32/newfns.c,v
retrieving revision 1.14
diff -u -w -u -w -r1.14 newfns.c
--- wine/win32/newfns.c	1999/09/19 14:20:35	1.14
+++ wine/win32/newfns.c	1999/11/01 04:28:07
@@ -310,13 +310,17 @@
  *
  * NOTES
  *    Return type should be HDESK
+ *
+ *    Not supported on Win9x - returns NULL and calls SetLastError.
  */
 HANDLE WINAPI OpenDesktopA( LPCSTR lpszDesktop, DWORD dwFlags, 
                                 BOOL fInherit, DWORD dwDesiredAccess )
 {
     FIXME_(win32)("(%s,%lx,%i,%lx): stub\n",debugstr_a(lpszDesktop),dwFlags,
           fInherit,dwDesiredAccess);
-    return 1;
+
+    SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+    return NULL;
 }
 
 

=========================================================================


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic