[Bug 17436] mRemote does not work

wine-bugs at winehq.org wine-bugs at winehq.org
Tue Oct 26 15:40:29 CDT 2010


http://bugs.winehq.org/show_bug.cgi?id=17436

--- Comment #7 from Louis Lenders <xerox_xerox2000 at yahoo.co.uk> 2010-10-26 15:40:26 CDT ---
(In reply to comment #5)
> I just tried RDP V7 from recent Windows 7 32 bit on Wine 1.2.1 and got the same
> error.
> 
> To reproduce just copy:
> system32\dwmapi.dll

The native dwmapi is not necessary anymore, i stubbed out the unimplemented
function.

Hi Michael, could you describe what exactly the error now is? I have an address
of a server from my work where i can logon and test, and I also see a lot of
calls to WSALookupServiceNextW, but I was able to login and work on the remote
desktop anyway. Apart from that it works, WSALookupServiceNext should return a
SOCKET_ERROR after a few calls anyway, as from the description on msdn and some
code bits i found, this is called in a while-loop, until all data is retrieved,
and than it should return SOCKET_ERROR with LastError WSA_E_NO_MORE

The patch below fakes this. I'll see if i can write some tests better stub for
this function

There's also a bug closing the app, then it runs into 2 other unimplemented
fundtions. I'll see if i can stub these out as well


diff --git a/dlls/ws2_32/socket.c b/dlls/ws2_32/socket.c
index 66726a7..9b60d54 100644
--- a/dlls/ws2_32/socket.c
+++ b/dlls/ws2_32/socket.c
@@ -6340,9 +6340,10 @@ INT WINAPI WSALookupServiceNextA( HANDLE lookup, DWORD
fl
  *              WSALookupServiceNextW                       (WS2_32.63)
  */
 INT WINAPI WSALookupServiceNextW( HANDLE lookup, DWORD flags, LPDWORD len,
LPWS
-{
+{   static int i=0;
+    
     FIXME( "(%p 0x%08x %p %p) Stub!\n", lookup, flags, len, results );
-    return 0;
+    if(!i) {i++; return 0;} else {WSASetLastError(WSA_E_NO_MORE); return
SOCKET
 }

 /***********************************************************************
(END)

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list