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
e2d94b5c
Commit
e2d94b5c
authored
Nov 16, 2022
by
Alex Henrie
Committed by
Alexandre Julliard
Nov 17, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dpnet: Use standard C functions for memory allocation in server.c.
parent
8ef070b6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
server.c
dlls/dpnet/server.c
+8
-8
No files found.
dlls/dpnet/server.c
View file @
e2d94b5c
...
...
@@ -95,9 +95,9 @@ static ULONG WINAPI IDirectPlay8ServerImpl_Release(IDirectPlay8Server *iface)
if
(
!
ref
)
{
heap_
free
(
This
->
servername
);
heap_
free
(
This
->
data
);
heap_
free
(
This
);
free
(
This
->
servername
);
free
(
This
->
data
);
free
(
This
);
}
return
ref
;
...
...
@@ -182,12 +182,12 @@ static HRESULT WINAPI IDirectPlay8ServerImpl_SetServerInfo(IDirectPlay8Server *i
if
(
pdpnPlayerInfo
->
dwInfoFlags
&
DPNINFO_NAME
)
{
heap_
free
(
This
->
servername
);
free
(
This
->
servername
);
This
->
servername
=
NULL
;
if
(
pdpnPlayerInfo
->
pwszName
)
{
This
->
servername
=
heap_strdupW
(
pdpnPlayerInfo
->
pwszName
);
This
->
servername
=
wcsdup
(
pdpnPlayerInfo
->
pwszName
);
if
(
!
This
->
servername
)
return
E_OUTOFMEMORY
;
}
...
...
@@ -195,7 +195,7 @@ static HRESULT WINAPI IDirectPlay8ServerImpl_SetServerInfo(IDirectPlay8Server *i
if
(
pdpnPlayerInfo
->
dwInfoFlags
&
DPNINFO_DATA
)
{
heap_
free
(
This
->
data
);
free
(
This
->
data
);
This
->
data
=
NULL
;
This
->
datasize
=
0
;
...
...
@@ -204,7 +204,7 @@ static HRESULT WINAPI IDirectPlay8ServerImpl_SetServerInfo(IDirectPlay8Server *i
if
(
pdpnPlayerInfo
->
dwDataSize
&&
pdpnPlayerInfo
->
pvData
)
{
This
->
data
=
heap_
alloc
(
pdpnPlayerInfo
->
dwDataSize
);
This
->
data
=
m
alloc
(
pdpnPlayerInfo
->
dwDataSize
);
if
(
!
This
->
data
)
return
E_OUTOFMEMORY
;
...
...
@@ -460,7 +460,7 @@ HRESULT DPNET_CreateDirectPlay8Server(IClassFactory *iface, IUnknown *pUnkOuter,
if
(
pUnkOuter
)
return
CLASS_E_NOAGGREGATION
;
server
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
IDirectPlay8ServerImpl
));
server
=
calloc
(
1
,
sizeof
(
IDirectPlay8ServerImpl
));
if
(
!
server
)
return
E_OUTOFMEMORY
;
...
...
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