Commit c854f9eb authored by Mike McCormack's avatar Mike McCormack Committed by Alexandre Julliard

Return more sane mailslot error values.

parent b4e9ef02
...@@ -1476,7 +1476,8 @@ HANDLE WINAPI CreateMailslotW( LPCWSTR lpName, DWORD nMaxMessageSize, ...@@ -1476,7 +1476,8 @@ HANDLE WINAPI CreateMailslotW( LPCWSTR lpName, DWORD nMaxMessageSize,
{ {
FIXME("(%s,%ld,%ld,%p): stub\n", debugstr_w(lpName), FIXME("(%s,%ld,%ld,%p): stub\n", debugstr_w(lpName),
nMaxMessageSize, lReadTimeout, sa); nMaxMessageSize, lReadTimeout, sa);
return (HANDLE)1; SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return INVALID_HANDLE_VALUE;
} }
...@@ -1501,11 +1502,8 @@ BOOL WINAPI GetMailslotInfo( HANDLE hMailslot, LPDWORD lpMaxMessageSize, ...@@ -1501,11 +1502,8 @@ BOOL WINAPI GetMailslotInfo( HANDLE hMailslot, LPDWORD lpMaxMessageSize,
LPDWORD lpReadTimeout ) LPDWORD lpReadTimeout )
{ {
FIXME("(%p): stub\n",hMailslot); FIXME("(%p): stub\n",hMailslot);
if (lpMaxMessageSize) *lpMaxMessageSize = (DWORD)NULL; SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
if (lpNextSize) *lpNextSize = (DWORD)NULL; return FALSE;
if (lpMessageCount) *lpMessageCount = (DWORD)NULL;
if (lpReadTimeout) *lpReadTimeout = (DWORD)NULL;
return TRUE;
} }
...@@ -1525,7 +1523,8 @@ BOOL WINAPI GetMailslotInfo( HANDLE hMailslot, LPDWORD lpMaxMessageSize, ...@@ -1525,7 +1523,8 @@ BOOL WINAPI GetMailslotInfo( HANDLE hMailslot, LPDWORD lpMaxMessageSize,
BOOL WINAPI SetMailslotInfo( HANDLE hMailslot, DWORD dwReadTimeout) BOOL WINAPI SetMailslotInfo( HANDLE hMailslot, DWORD dwReadTimeout)
{ {
FIXME("%p %ld: stub\n", hMailslot, dwReadTimeout); FIXME("%p %ld: stub\n", hMailslot, dwReadTimeout);
return TRUE; SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return FALSE;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment