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
6fd05b1d
Commit
6fd05b1d
authored
Jun 18, 2007
by
Dan Hipschman
Committed by
Alexandre Julliard
Jun 19, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Fix bug calculating union switch type.
parent
b09b917a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
7 deletions
+5
-7
ndr_marshall.c
dlls/rpcrt4/ndr_marshall.c
+5
-5
server.c
dlls/rpcrt4/tests/server.c
+0
-2
No files found.
dlls/rpcrt4/ndr_marshall.c
View file @
6fd05b1d
...
...
@@ -4301,7 +4301,7 @@ unsigned char * WINAPI NdrEncapsulatedUnionMarshall(PMIDL_STUB_MESSAGE pStubMsg
pFormat
++
;
switch_type
=
*
pFormat
&
0xf
;
increment
=
*
pFormat
&
0xf0
>>
4
;
increment
=
(
*
pFormat
&
0xf0
)
>>
4
;
pFormat
++
;
ALIGN_POINTER
(
pStubMsg
->
Buffer
,
increment
);
...
...
@@ -4333,7 +4333,7 @@ unsigned char * WINAPI NdrEncapsulatedUnionUnmarshall(PMIDL_STUB_MESSAGE pStubM
pFormat
++
;
switch_type
=
*
pFormat
&
0xf
;
increment
=
*
pFormat
&
0xf0
>>
4
;
increment
=
(
*
pFormat
&
0xf0
)
>>
4
;
pFormat
++
;
ALIGN_POINTER
(
pStubMsg
->
Buffer
,
increment
);
...
...
@@ -4365,7 +4365,7 @@ void WINAPI NdrEncapsulatedUnionBufferSize(PMIDL_STUB_MESSAGE pStubMsg,
pFormat
++
;
switch_type
=
*
pFormat
&
0xf
;
increment
=
*
pFormat
&
0xf0
>>
4
;
increment
=
(
*
pFormat
&
0xf0
)
>>
4
;
pFormat
++
;
ALIGN_LENGTH
(
pStubMsg
->
BufferLength
,
increment
);
...
...
@@ -4390,7 +4390,7 @@ ULONG WINAPI NdrEncapsulatedUnionMemorySize(PMIDL_STUB_MESSAGE pStubMsg,
ULONG
switch_value
;
switch_type
=
*
pFormat
&
0xf
;
increment
=
*
pFormat
&
0xf0
>>
4
;
increment
=
(
*
pFormat
&
0xf0
)
>>
4
;
pFormat
++
;
ALIGN_POINTER
(
pStubMsg
->
Buffer
,
increment
);
...
...
@@ -4417,7 +4417,7 @@ void WINAPI NdrEncapsulatedUnionFree(PMIDL_STUB_MESSAGE pStubMsg,
pFormat
++
;
switch_type
=
*
pFormat
&
0xf
;
increment
=
*
pFormat
&
0xf0
>>
4
;
increment
=
(
*
pFormat
&
0xf0
)
>>
4
;
pFormat
++
;
switch_value
=
get_discriminant
(
switch_type
,
pMemory
);
...
...
dlls/rpcrt4/tests/server.c
View file @
6fd05b1d
...
...
@@ -396,7 +396,6 @@ union_tests(void)
i
=
11
;
ok
(
square_sun
(
&
su
)
==
121
.
0
,
"RPC square_sun
\n
"
);
todo_wine
{
eu
.
t
=
ENCU_I
;
eu
.
tagged_union
.
i
=
7
;
ok
(
square_encu
(
&
eu
)
==
49
.
0
,
"RPC square_encu
\n
"
);
...
...
@@ -405,7 +404,6 @@ todo_wine {
eu
.
tagged_union
.
f
=
3
.
0
;
ok
(
square_encu
(
&
eu
)
==
9
.
0
,
"RPC square_encu
\n
"
);
}
}
static
test_list_t
*
null_list
(
void
)
...
...
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