Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
626040b1
Commit
626040b1
authored
Mar 25, 2014
by
Thomas Faber
Committed by
Alexandre Julliard
Mar 25, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ws2_32: Avoid a variable-length array.
parent
b1b92046
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
socket.c
dlls/ws2_32/socket.c
+3
-1
No files found.
dlls/ws2_32/socket.c
View file @
626040b1
...
...
@@ -3337,12 +3337,13 @@ INT WINAPI WS_getsockopt(SOCKET s, INT level,
#endif
#ifdef HAS_IRDA
#define MAX_IRDA_DEVICES 10
case
WS_SOL_IRLMP
:
switch
(
optname
)
{
case
WS_IRLMP_ENUMDEVICES
:
{
static
const
int
MAX_IRDA_DEVICES
=
10
;
char
buf
[
sizeof
(
struct
irda_device_list
)
+
(
MAX_IRDA_DEVICES
-
1
)
*
sizeof
(
struct
irda_device_info
)];
int
res
;
...
...
@@ -3402,6 +3403,7 @@ INT WINAPI WS_getsockopt(SOCKET s, INT level,
return
SOCKET_ERROR
;
}
break
;
/* case WS_SOL_IRLMP */
#undef MAX_IRDA_DEVICES
#endif
/* Levels WS_IPPROTO_TCP and WS_IPPROTO_IP convert directly */
...
...
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