Commit 43a1a248 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

server: Correctly access the sir_lsap_sel field.

parent fb648144
......@@ -427,10 +427,10 @@ static socklen_t sockaddr_to_unix( const struct WS_sockaddr *wsaddr, int wsaddrl
memcpy( &win, wsaddr, sizeof(win) );
uaddr->irda.sir_family = AF_IRDA;
if (sscanf( win.irdaServiceName, "LSAP-SEL%u", &lsap_sel ) == 1)
uaddr->sir_lsap_sel = lsap_sel;
uaddr->irda.sir_lsap_sel = lsap_sel;
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_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