Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
978a9342
Commit
978a9342
authored
Jun 04, 2002
by
Bill Medland
Committed by
Alexandre Julliard
Jun 04, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed incorrect pointer-cast arithmetic.
Extended ole trace information. Don't lose the existing pipes on alloc failure.
parent
bbbc18b1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
rpc.c
dlls/ole32/rpc.c
+8
-6
No files found.
dlls/ole32/rpc.c
View file @
978a9342
...
...
@@ -94,7 +94,7 @@ _xread(HANDLE hf, LPVOID ptr, DWORD size) {
return
E_FAIL
;
}
if
(
res
!=
size
)
{
FIXME
(
"Read only %ld of %ld bytes
.
\n
"
,
res
,
size
);
FIXME
(
"Read only %ld of %ld bytes
from %x.
\n
"
,
res
,
size
,
hf
);
return
E_FAIL
;
}
return
S_OK
;
...
...
@@ -130,7 +130,7 @@ _xwrite(HANDLE hf, LPVOID ptr, DWORD size) {
return
E_FAIL
;
}
if
(
res
!=
size
)
{
FIXME
(
"Wrote only %ld of %ld bytes
.
\n
"
,
res
,
size
);
FIXME
(
"Wrote only %ld of %ld bytes
to %x.
\n
"
,
res
,
size
,
hf
);
return
E_FAIL
;
}
return
S_OK
;
...
...
@@ -142,22 +142,24 @@ static HRESULT
PIPE_RegisterPipe
(
wine_marshal_id
*
mid
,
HANDLE
hPipe
,
BOOL
startreader
)
{
int
i
;
char
pipefn
[
100
];
wine_pipe
*
new_pipes
;
for
(
i
=
0
;
i
<
nrofpipes
;
i
++
)
if
(
pipes
[
i
].
mid
.
processid
==
mid
->
processid
)
return
S_OK
;
if
(
pipes
)
pipes
=
(
wine_pipe
*
)
HeapReAlloc
(
GetProcessHeap
(),
0
,
pipes
,
sizeof
(
pipes
[
0
])
*
(
nrofpipes
+
1
));
new_
pipes
=
(
wine_pipe
*
)
HeapReAlloc
(
GetProcessHeap
(),
0
,
pipes
,
sizeof
(
pipes
[
0
])
*
(
nrofpipes
+
1
));
else
pipes
=
(
wine_pipe
*
)
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
pipes
[
0
]));
if
(
!
pipes
)
return
E_OUTOFMEMORY
;
new_pipes
=
(
wine_pipe
*
)
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
pipes
[
0
]));
if
(
!
new_pipes
)
return
E_OUTOFMEMORY
;
pipes
=
new_pipes
;
sprintf
(
pipefn
,
OLESTUBMGR
"_%08lx"
,
mid
->
processid
);
memcpy
(
&
(
pipes
[
nrofpipes
].
mid
),
mid
,
sizeof
(
*
mid
));
pipes
[
nrofpipes
].
hPipe
=
hPipe
;
InitializeCriticalSection
(
&
(
pipes
[
nrofpipes
].
crit
));
nrofpipes
++
;
if
(
startreader
)
{
pipes
[
nrofpipes
-
1
].
hThread
=
CreateThread
(
NULL
,
0
,
_StubReaderThread
,(
LPVOID
)
pipes
+
(
nrofpipes
-
1
),
0
,
&
(
pipes
[
nrofpipes
-
1
].
tid
));
pipes
[
nrofpipes
-
1
].
hThread
=
CreateThread
(
NULL
,
0
,
_StubReaderThread
,(
LPVOID
)
(
pipes
+
(
nrofpipes
-
1
)
),
0
,
&
(
pipes
[
nrofpipes
-
1
].
tid
));
}
else
{
pipes
[
nrofpipes
-
1
].
tid
=
GetCurrentThreadId
();
}
...
...
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