Commit c2351cd9 authored by Roberto Pungartnik's avatar Roberto Pungartnik Committed by Alexandre Julliard

ntdll: Fix IOCTL_AFD_WINE_SENDMSG irda member misreference.

parent 2d629228
...@@ -255,10 +255,10 @@ static socklen_t sockaddr_to_unix( const struct WS_sockaddr *wsaddr, int wsaddrl ...@@ -255,10 +255,10 @@ static socklen_t sockaddr_to_unix( const struct WS_sockaddr *wsaddr, int wsaddrl
memcpy( &win, wsaddr, sizeof(win) ); memcpy( &win, wsaddr, sizeof(win) );
uaddr->irda.sir_family = AF_IRDA; uaddr->irda.sir_family = AF_IRDA;
if (sscanf( win.irdaServiceName, "LSAP-SEL%u", &lsap_sel ) == 1) if (sscanf( win.irdaServiceName, "LSAP-SEL%u", &lsap_sel ) == 1)
uaddr->sir_lsap_sel = lsap_sel; uaddr->irda.sir_lsap_sel = lsap_sel;
else else
{ {
uaddr->sir_lsap_sel = LSAP_ANY; uaddr->irda.sir_lsap_sel = LSAP_ANY;
memcpy( uaddr->irda.sir_name, win.irdaServiceName, sizeof(win.irdaServiceName) ); memcpy( uaddr->irda.sir_name, win.irdaServiceName, sizeof(win.irdaServiceName) );
} }
memcpy( &uaddr->irda.sir_addr, win.irdaDeviceID, sizeof(win.irdaDeviceID) ); memcpy( &uaddr->irda.sir_addr, win.irdaDeviceID, sizeof(win.irdaDeviceID) );
......
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