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
7fd3fe59
Commit
7fd3fe59
authored
Nov 04, 2007
by
Juan Lang
Committed by
Alexandre Julliard
Nov 05, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wsock32: Don't use HEAP_ZERO_MEMORY for memory that's fully initialized anyway.
parent
44c64aef
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
socket.c
dlls/wsock32/socket.c
+6
-6
No files found.
dlls/wsock32/socket.c
View file @
7fd3fe59
...
...
@@ -170,7 +170,7 @@ DWORD WINAPI WsControl(DWORD protocol,
ifTable
=
0
;
GetIfTable
(
NULL
,
&
ifTable
,
FALSE
);
table
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
ifTable
);
table
=
HeapAlloc
(
GetProcessHeap
(),
0
,
ifTable
);
if
(
!
table
)
return
ERROR_NOT_ENOUGH_MEMORY
;
GetIfTable
(
table
,
&
ifTable
,
FALSE
);
...
...
@@ -287,7 +287,7 @@ DWORD WINAPI WsControl(DWORD protocol,
if
(
*
pcbResponseInfoLen
<
sizeof
(
ULONG
)
*
2
)
return
(
ERROR_LOCK_VIOLATION
);
GetIpNetTable
(
NULL
,
&
size
,
FALSE
);
table
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
size
);
table
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size
);
if
(
!
table
)
return
ERROR_NOT_ENOUGH_MEMORY
;
GetIpNetTable
(
table
,
&
size
,
FALSE
);
...
...
@@ -399,7 +399,7 @@ DWORD WINAPI WsControl(DWORD protocol,
gets just one entry. */
tableSize
=
0
;
GetIpAddrTable
(
NULL
,
&
tableSize
,
FALSE
);
table
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
tableSize
);
table
=
HeapAlloc
(
GetProcessHeap
(),
0
,
tableSize
);
if
(
!
table
)
return
ERROR_NOT_ENOUGH_MEMORY
;
GetIpAddrTable
(
table
,
&
tableSize
,
FALSE
);
...
...
@@ -450,7 +450,7 @@ DWORD WINAPI WsControl(DWORD protocol,
/
sizeof
(
MIB_IPFORWARDROW
)
+
1
;
if
(
*
pcbResponseInfoLen
<
sizeof
(
IPRouteEntry
)
*
numRoutes
)
return
(
ERROR_LOCK_VIOLATION
);
table
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
routeTableSize
);
table
=
HeapAlloc
(
GetProcessHeap
(),
0
,
routeTableSize
);
if
(
!
table
)
return
ERROR_NOT_ENOUGH_MEMORY
;
ret
=
GetIpForwardTable
(
table
,
&
routeTableSize
,
FALSE
);
...
...
@@ -503,7 +503,7 @@ DWORD WINAPI WsControl(DWORD protocol,
/
sizeof
(
MIB_IPNETROW
)
+
1
;
if
(
*
pcbResponseInfoLen
<
sizeof
(
MIB_IPNETROW
)
*
numEntries
)
return
(
ERROR_LOCK_VIOLATION
);
table
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
arpTableSize
);
table
=
HeapAlloc
(
GetProcessHeap
(),
0
,
arpTableSize
);
if
(
!
table
)
return
ERROR_NOT_ENOUGH_MEMORY
;
ret
=
GetIpNetTable
(
table
,
&
arpTableSize
,
FALSE
);
...
...
@@ -545,7 +545,7 @@ DWORD WINAPI WsControl(DWORD protocol,
/
sizeof
(
MIB_TCPROW
)
+
1
;
if
(
*
pcbResponseInfoLen
<
sizeof
(
MIB_TCPROW
)
*
numEntries
)
return
(
ERROR_LOCK_VIOLATION
);
table
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
tcpTableSize
);
table
=
HeapAlloc
(
GetProcessHeap
(),
0
,
tcpTableSize
);
if
(
!
table
)
return
ERROR_NOT_ENOUGH_MEMORY
;
ret
=
GetTcpTable
(
table
,
&
tcpTableSize
,
FALSE
);
...
...
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