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
352d9e2d
Commit
352d9e2d
authored
Jul 14, 2006
by
Robert Shearman
Committed by
Alexandre Julliard
Jul 17, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Free the buffer allocated in local_server_thread (found by Smatch).
parent
9c3b12bd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
rpc.c
dlls/ole32/rpc.c
+6
-2
No files found.
dlls/ole32/rpc.c
View file @
352d9e2d
...
...
@@ -976,8 +976,6 @@ static DWORD WINAPI local_server_thread(LPVOID param)
hres
=
IStream_Stat
(
pStm
,
&
ststg
,
0
);
if
(
hres
)
return
hres
;
buflen
=
ststg
.
cbSize
.
u
.
LowPart
;
buffer
=
HeapAlloc
(
GetProcessHeap
(),
0
,
buflen
);
seekto
.
u
.
LowPart
=
0
;
seekto
.
u
.
HighPart
=
0
;
hres
=
IStream_Seek
(
pStm
,
seekto
,
SEEK_SET
,
&
newpos
);
...
...
@@ -985,14 +983,20 @@ static DWORD WINAPI local_server_thread(LPVOID param)
FIXME
(
"IStream_Seek failed, %lx
\n
"
,
hres
);
return
hres
;
}
buflen
=
ststg
.
cbSize
.
u
.
LowPart
;
buffer
=
HeapAlloc
(
GetProcessHeap
(),
0
,
buflen
);
hres
=
IStream_Read
(
pStm
,
buffer
,
buflen
,
&
res
);
if
(
hres
)
{
FIXME
(
"Stream Read failed, %lx
\n
"
,
hres
);
HeapFree
(
GetProcessHeap
(),
0
,
buffer
);
return
hres
;
}
WriteFile
(
hPipe
,
buffer
,
buflen
,
&
res
,
NULL
);
HeapFree
(
GetProcessHeap
(),
0
,
buffer
);
FlushFileBuffers
(
hPipe
);
DisconnectNamedPipe
(
hPipe
);
...
...
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