return more sane mailslot error values

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



ChangeLog:
* return more sane mailslot error values
Index: dlls/kernel/sync.c
===================================================================
RCS file: /home/wine/wine/dlls/kernel/sync.c,v
retrieving revision 1.42
diff -u -r1.42 sync.c
--- dlls/kernel/sync.c	9 Oct 2003 19:46:43 -0000	1.42
+++ dlls/kernel/sync.c	30 Oct 2003 10:06:19 -0000
@@ -1476,7 +1476,8 @@
 {
     FIXME("(%s,%ld,%ld,%p): stub\n", debugstr_w(lpName),
           nMaxMessageSize, lReadTimeout, sa);
-    return (HANDLE)1;
+    SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+    return INVALID_HANDLE_VALUE;
 }
 
 
@@ -1501,11 +1502,8 @@
                                LPDWORD lpReadTimeout )
 {
     FIXME("(%p): stub\n",hMailslot);
-    if (lpMaxMessageSize) *lpMaxMessageSize = (DWORD)NULL;
-    if (lpNextSize) *lpNextSize = (DWORD)NULL;
-    if (lpMessageCount) *lpMessageCount = (DWORD)NULL;
-    if (lpReadTimeout) *lpReadTimeout = (DWORD)NULL;
-    return TRUE;
+    SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+    return FALSE;
 }
 
 
@@ -1525,7 +1523,8 @@
 BOOL WINAPI SetMailslotInfo( HANDLE hMailslot, DWORD dwReadTimeout)
 {
     FIXME("%p %ld: stub\n", hMailslot, dwReadTimeout);
-    return TRUE;
+    SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+    return FALSE;
 }
 
 

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux