Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
37f5080e
Commit
37f5080e
authored
Jan 08, 2011
by
Gerald Pfeifer
Committed by
Alexandre Julliard
Jan 10, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ws2_32: Restructure and simplify debugstr_wsaioctl a bit.
parent
f133222d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
24 deletions
+17
-24
socket.c
dlls/ws2_32/socket.c
+17
-24
No files found.
dlls/ws2_32/socket.c
View file @
37f5080e
...
@@ -2967,14 +2967,24 @@ char* WINAPI WS_inet_ntoa(struct WS_in_addr in)
...
@@ -2967,14 +2967,24 @@ char* WINAPI WS_inet_ntoa(struct WS_in_addr in)
static
const
char
*
debugstr_wsaioctl
(
DWORD
ioctl
)
static
const
char
*
debugstr_wsaioctl
(
DWORD
ioctl
)
{
{
const
char
*
buf_type
,
*
family
;
switch
(
ioctl
&
0x18000000
)
switch
(
ioctl
&
0x18000000
)
{
{
case
WS_IOC_UNIX
:
case
WS_IOC_WS2
:
family
=
"IOC_WS2"
;
break
;
case
WS_IOC_PROTOCOL
:
family
=
"IOC_PROTOCOL"
;
break
;
case
WS_IOC_VENDOR
:
family
=
"IOC_VENDOR"
;
break
;
default:
/* WS_IOC_UNIX */
{
{
BYTE
size
=
(
ioctl
>>
16
)
&
WS_IOCPARM_MASK
;
BYTE
size
=
(
ioctl
>>
16
)
&
WS_IOCPARM_MASK
;
char
x
=
(
ioctl
&
0xff00
)
>>
8
;
char
x
=
(
ioctl
&
0xff00
)
>>
8
;
BYTE
y
=
ioctl
&
0xff
;
BYTE
y
=
ioctl
&
0xff
;
const
char
*
buf_type
;
char
args
[
14
];
char
args
[
14
];
switch
(
ioctl
&
(
WS_IOC_VOID
|
WS_IOC_INOUT
))
switch
(
ioctl
&
(
WS_IOC_VOID
|
WS_IOC_INOUT
))
...
@@ -2998,26 +3008,9 @@ static const char *debugstr_wsaioctl(DWORD ioctl)
...
@@ -2998,26 +3008,9 @@ static const char *debugstr_wsaioctl(DWORD ioctl)
}
}
return
wine_dbg_sprintf
(
"%s(%s)"
,
buf_type
,
args
);
return
wine_dbg_sprintf
(
"%s(%s)"
,
buf_type
,
args
);
}
}
default:
{
USHORT
code
=
ioctl
&
0xffff
;
const
char
*
family
,
*
buf_type
;
/* This switch looks redundant, but isn't: the case WS_IOC_UNIX
* is handled differently than all others.
*/
switch
(
ioctl
&
0x18000000
)
{
case
WS_IOC_WS2
:
family
=
"IOC_WS2"
;
break
;
case
WS_IOC_PROTOCOL
:
family
=
"IOC_PROTOCOL"
;
break
;
case
WS_IOC_VENDOR
:
family
=
"IOC_VENDOR"
;
break
;
}
}
/* We are different from WS_IOC_UNIX. */
switch
(
ioctl
&
(
WS_IOC_VOID
|
WS_IOC_INOUT
))
switch
(
ioctl
&
(
WS_IOC_VOID
|
WS_IOC_INOUT
))
{
{
case
WS_IOC_VOID
:
case
WS_IOC_VOID
:
...
@@ -3036,9 +3029,9 @@ static const char *debugstr_wsaioctl(DWORD ioctl)
...
@@ -3036,9 +3029,9 @@ static const char *debugstr_wsaioctl(DWORD ioctl)
buf_type
=
"?"
;
buf_type
=
"?"
;
break
;
break
;
}
}
return
wine_dbg_sprintf
(
"%s(%s, %d)"
,
buf_type
,
family
,
code
);
}
return
wine_dbg_sprintf
(
"%s(%s, %d)"
,
buf_type
,
family
,
}
(
USHORT
)(
ioctl
&
0xffff
));
}
}
/**********************************************************************
/**********************************************************************
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment