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
e3abd2b3
Commit
e3abd2b3
authored
Jan 23, 2007
by
Huw Davies
Committed by
Alexandre Julliard
Jan 24, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Implement NdrSimpleType{Marshall,Unmarshall}.
parent
dfcdbba1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
2 deletions
+39
-2
ndr_marshall.c
dlls/rpcrt4/ndr_marshall.c
+2
-2
ndr_marshall.c
dlls/rpcrt4/tests/ndr_marshall.c
+37
-0
No files found.
dlls/rpcrt4/ndr_marshall.c
View file @
e3abd2b3
...
...
@@ -1524,7 +1524,7 @@ void WINAPI NdrPointerFree(PMIDL_STUB_MESSAGE pStubMsg,
void
WINAPI
NdrSimpleTypeMarshall
(
PMIDL_STUB_MESSAGE
pStubMsg
,
unsigned
char
*
pMemory
,
unsigned
char
FormatChar
)
{
FIXME
(
"stub
\n
"
);
NdrBaseTypeMarshall
(
pStubMsg
,
pMemory
,
&
FormatChar
);
}
/***********************************************************************
...
...
@@ -1533,7 +1533,7 @@ void WINAPI NdrSimpleTypeMarshall( PMIDL_STUB_MESSAGE pStubMsg, unsigned char* p
void
WINAPI
NdrSimpleTypeUnmarshall
(
PMIDL_STUB_MESSAGE
pStubMsg
,
unsigned
char
*
pMemory
,
unsigned
char
FormatChar
)
{
FIXME
(
"stub
\n
"
);
NdrBaseTypeUnmarshall
(
pStubMsg
,
&
pMemory
,
&
FormatChar
,
0
);
}
/***********************************************************************
...
...
dlls/rpcrt4/tests/ndr_marshall.c
View file @
e3abd2b3
...
...
@@ -73,6 +73,42 @@ static const MIDL_STUB_DESC Object_StubDesc =
};
static
void
test_ndr_simple_type
(
void
)
{
RPC_MESSAGE
RpcMessage
;
MIDL_STUB_MESSAGE
StubMsg
;
MIDL_STUB_DESC
StubDesc
;
long
l
,
l2
=
0
;
StubDesc
=
Object_StubDesc
;
StubDesc
.
pFormatTypes
=
NULL
;
NdrClientInitializeNew
(
&
RpcMessage
,
&
StubMsg
,
&
StubDesc
,
0
);
StubMsg
.
BufferLength
=
16
;
StubMsg
.
RpcMsg
->
Buffer
=
StubMsg
.
BufferStart
=
StubMsg
.
Buffer
=
HeapAlloc
(
GetProcessHeap
(),
0
,
StubMsg
.
BufferLength
);
l
=
0xcafebabe
;
NdrSimpleTypeMarshall
(
&
StubMsg
,
(
unsigned
char
*
)
&
l
,
8
/* FC_LONG */
);
ok
(
StubMsg
.
Buffer
==
StubMsg
.
BufferStart
+
4
,
"%p %p
\n
"
,
StubMsg
.
Buffer
,
StubMsg
.
BufferStart
);
ok
(
*
(
long
*
)
StubMsg
.
BufferStart
==
l
,
"%ld
\n
"
,
*
(
long
*
)
StubMsg
.
BufferStart
);
StubMsg
.
Buffer
=
StubMsg
.
BufferStart
+
1
;
NdrSimpleTypeMarshall
(
&
StubMsg
,
(
unsigned
char
*
)
&
l
,
8
/* FC_LONG */
);
ok
(
StubMsg
.
Buffer
==
StubMsg
.
BufferStart
+
8
,
"%p %p
\n
"
,
StubMsg
.
Buffer
,
StubMsg
.
BufferStart
);
ok
(
*
(
long
*
)(
StubMsg
.
BufferStart
+
4
)
==
l
,
"%ld
\n
"
,
*
(
long
*
)
StubMsg
.
BufferStart
);
StubMsg
.
Buffer
=
StubMsg
.
BufferStart
+
1
;
NdrSimpleTypeUnmarshall
(
&
StubMsg
,
(
unsigned
char
*
)
&
l2
,
8
/* FC_LONG */
);
ok
(
StubMsg
.
Buffer
==
StubMsg
.
BufferStart
+
8
,
"%p %p
\n
"
,
StubMsg
.
Buffer
,
StubMsg
.
BufferStart
);
ok
(
l2
==
l
,
"%ld
\n
"
,
l2
);
HeapFree
(
GetProcessHeap
(),
0
,
StubMsg
.
BufferStart
);
}
static
void
test_pointer_marshal
(
const
unsigned
char
*
formattypes
,
void
*
memsrc
,
long
srcsize
,
...
...
@@ -950,6 +986,7 @@ todo_wine {
START_TEST
(
ndr_marshall
)
{
test_ndr_simple_type
();
test_simple_types
();
test_simple_struct
();
test_fullpointer_xlat
();
...
...
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