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

List:       wine-patches
Subject:    return more sane mailslot error values
From:       Mike McCormack <mike () codeweavers ! com>
Date:       2003-10-30 10:12:29
[Download RAW message or body]

ChangeLog:
* return more sane mailslot error values

["mailslot-fail.diff" (text/plain)]

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;
 }
 
 


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

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