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
afdd2191
Commit
afdd2191
authored
Aug 26, 2023
by
Alex Henrie
Committed by
Alexandre Julliard
Aug 28, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mpr: Fix double free in WNetGetResourceInformationA.
parent
221d5aba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
wnet.c
dlls/mpr/wnet.c
+3
-5
No files found.
dlls/mpr/wnet.c
View file @
afdd2191
...
...
@@ -1684,7 +1684,7 @@ DWORD WINAPI WNetGetResourceInformationA( LPNETRESOURCEA lpNetResource,
if
(
ret
==
WN_SUCCESS
)
{
LPWSTR
lpSystemW
=
NULL
;
LPVOID
lpBufferW
;
NETRESOURCEW
*
lpBufferW
;
size
=
1024
;
lpBufferW
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size
);
if
(
lpBufferW
)
...
...
@@ -1705,12 +1705,10 @@ DWORD WINAPI WNetGetResourceInformationA( LPNETRESOURCEA lpNetResource,
{
ret
=
_thunkNetResourceArrayWToA
(
lpBufferW
,
&
count
,
lpBuffer
,
cbBuffer
);
HeapFree
(
GetProcessHeap
(),
0
,
lpNetResourceW
);
lpNetResourceW
=
lpBufferW
;
size
=
sizeof
(
NETRESOURCEA
);
size
+=
WideCharToMultiByte
(
CP_ACP
,
0
,
lp
NetResource
W
->
lpRemoteName
,
size
+=
WideCharToMultiByte
(
CP_ACP
,
0
,
lp
Buffer
W
->
lpRemoteName
,
-
1
,
NULL
,
0
,
NULL
,
NULL
);
size
+=
WideCharToMultiByte
(
CP_ACP
,
0
,
lp
NetResource
W
->
lpProvider
,
size
+=
WideCharToMultiByte
(
CP_ACP
,
0
,
lp
Buffer
W
->
lpProvider
,
-
1
,
NULL
,
0
,
NULL
,
NULL
);
len
=
WideCharToMultiByte
(
CP_ACP
,
0
,
lpSystemW
,
...
...
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