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
14c551bc
Commit
14c551bc
authored
Oct 08, 2006
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Oct 09, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4/tests: Win64 printf format warning fixes.
parent
bcd0836f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
13 deletions
+12
-13
Makefile.in
dlls/rpcrt4/tests/Makefile.in
+0
-1
cstub.c
dlls/rpcrt4/tests/cstub.c
+9
-9
ndr_marshall.c
dlls/rpcrt4/tests/ndr_marshall.c
+3
-3
No files found.
dlls/rpcrt4/tests/Makefile.in
View file @
14c551bc
...
...
@@ -5,7 +5,6 @@ VPATH = @srcdir@
TESTDLL
=
rpcrt4.dll
IMPORTS
=
ole32 rpcrt4 kernel32
EXTRALIBS
=
-luuid
EXTRADEFS
=
-DWINE_NO_LONG_AS_INT
CTESTS
=
\
cstub.c
\
...
...
dlls/rpcrt4/tests/cstub.c
View file @
14c551bc
...
...
@@ -447,7 +447,7 @@ static IPSFactoryBuffer *test_NdrDllGetClassObject(void)
r
=
NdrDllGetClassObject
(
&
PSDispatch
,
&
IID_IPSFactoryBuffer
,
(
void
**
)
&
ppsf
,
proxy_file_list
,
&
PSDispatch
,
&
PSFactoryBuffer
);
ok
(
r
==
S_OK
,
"ret %08
l
x
\n
"
,
r
);
ok
(
r
==
S_OK
,
"ret %08x
\n
"
,
r
);
ok
(
ppsf
!=
NULL
,
"ppsf == NULL
\n
"
);
ok
(
PSFactoryBuffer
.
pProxyFileList
==
proxy_file_list
,
"pfl not the same
\n
"
);
...
...
@@ -567,7 +567,7 @@ static IRpcStubBuffer *create_stub(IPSFactoryBuffer *ppsf, REFIID iid, IUnknown
HRESULT
r
;
r
=
IPSFactoryBuffer_CreateStub
(
ppsf
,
iid
,
obj
,
&
pstub
);
ok
(
r
==
expected_result
,
"CreateStub returned %08
lx expected %08l
x
\n
"
,
r
,
expected_result
);
ok
(
r
==
expected_result
,
"CreateStub returned %08
x expected %08
x
\n
"
,
r
,
expected_result
);
return
pstub
;
}
...
...
@@ -704,14 +704,14 @@ static void test_Connect(IPSFactoryBuffer *ppsf)
obj
=
(
IUnknown
*
)
&
new_vtbl
;
r
=
IRpcStubBuffer_Connect
(
pstub
,
obj
);
ok
(
r
==
S_OK
,
"r %08
l
x
\n
"
,
r
);
ok
(
r
==
S_OK
,
"r %08x
\n
"
,
r
);
ok
(
connect_test_orig_release_called
==
1
,
"release called %d
\n
"
,
connect_test_orig_release_called
);
ok
(
cstd_stub
->
pvServerObject
==
(
void
*
)
0xcafebabe
,
"pvServerObject %p
\n
"
,
cstd_stub
->
pvServerObject
);
cstd_stub
->
pvServerObject
=
(
IUnknown
*
)
&
orig_vtbl
;
obj
=
(
IUnknown
*
)
&
new_fail_vtbl
;
r
=
IRpcStubBuffer_Connect
(
pstub
,
obj
);
ok
(
r
==
E_NOINTERFACE
,
"r %08
l
x
\n
"
,
r
);
ok
(
r
==
E_NOINTERFACE
,
"r %08x
\n
"
,
r
);
ok
(
cstd_stub
->
pvServerObject
==
(
void
*
)
0xdeadbeef
,
"pvServerObject %p
\n
"
,
cstd_stub
->
pvServerObject
);
ok
(
connect_test_orig_release_called
==
2
,
"release called %d
\n
"
,
connect_test_orig_release_called
);
...
...
@@ -786,15 +786,15 @@ static void test_Release(IPSFactoryBuffer *ppsf)
todo_wine
{
ok
(
connect_test_orig_release_called
==
0
,
"release called %d
\n
"
,
connect_test_orig_release_called
);
}
ok
(
PSFactoryBuffer
.
RefCount
==
facbuf_refs
-
1
,
"factory buffer refs %ld orig %
l
d
\n
"
,
PSFactoryBuffer
.
RefCount
,
facbuf_refs
);
ok
(
PSFactoryBuffer
.
RefCount
==
facbuf_refs
-
1
,
"factory buffer refs %ld orig %d
\n
"
,
PSFactoryBuffer
.
RefCount
,
facbuf_refs
);
/* This shows that NdrCStdStubBuffer_Release calls Release on its 2nd arg, rather than on This->pPSFactory
(which are usually the same and indeed it's odd that _Release requires this 2nd arg). */
pstub
=
create_stub
(
ppsf
,
&
IID_if1
,
obj
,
S_OK
);
ok
(
PSFactoryBuffer
.
RefCount
==
facbuf_refs
,
"factory buffer refs %ld orig %
l
d
\n
"
,
PSFactoryBuffer
.
RefCount
,
facbuf_refs
);
ok
(
PSFactoryBuffer
.
RefCount
==
facbuf_refs
,
"factory buffer refs %ld orig %d
\n
"
,
PSFactoryBuffer
.
RefCount
,
facbuf_refs
);
NdrCStdStubBuffer_Release
(
pstub
,
(
IPSFactoryBuffer
*
)
pretend_psfacbuf
);
ok
(
release_test_psfacbuf_release_called
==
1
,
"pretend_psfacbuf_release called %d
\n
"
,
release_test_psfacbuf_release_called
);
ok
(
PSFactoryBuffer
.
RefCount
==
facbuf_refs
,
"factory buffer refs %ld orig %
l
d
\n
"
,
PSFactoryBuffer
.
RefCount
,
facbuf_refs
);
ok
(
PSFactoryBuffer
.
RefCount
==
facbuf_refs
,
"factory buffer refs %ld orig %d
\n
"
,
PSFactoryBuffer
.
RefCount
,
facbuf_refs
);
}
static
HRESULT
WINAPI
delegating_invoke_test_QI
(
ITypeLib
*
pUnk
,
REFIID
iid
,
void
**
ppv
)
...
...
@@ -877,8 +877,8 @@ static void test_delegating_Invoke(IPSFactoryBuffer *ppsf)
#endif
if
(
r
==
S_OK
)
{
ok
(
*
(
DWORD
*
)
msg
.
Buffer
==
0xabcdef
,
"buf[0] %08
l
x
\n
"
,
*
(
DWORD
*
)
msg
.
Buffer
);
ok
(
*
((
DWORD
*
)
msg
.
Buffer
+
1
)
==
S_OK
,
"buf[1] %08
l
x
\n
"
,
*
((
DWORD
*
)
msg
.
Buffer
+
1
));
ok
(
*
(
DWORD
*
)
msg
.
Buffer
==
0xabcdef
,
"buf[0] %08x
\n
"
,
*
(
DWORD
*
)
msg
.
Buffer
);
ok
(
*
((
DWORD
*
)
msg
.
Buffer
+
1
)
==
S_OK
,
"buf[1] %08x
\n
"
,
*
((
DWORD
*
)
msg
.
Buffer
+
1
));
}
IRpcStubBuffer_Release
(
pstub
);
}
...
...
dlls/rpcrt4/tests/ndr_marshall.c
View file @
14c551bc
...
...
@@ -447,7 +447,7 @@ static void test_simple_struct_marshal(const unsigned char *formattypes,
ptr
=
NdrSimpleStructMarshall
(
&
StubMsg
,
(
unsigned
char
*
)
memsrc
,
formattypes
);
ok
(
ptr
==
NULL
,
"%s: ret %p
\n
"
,
msgpfx
,
ptr
);
ok
(
StubMsg
.
Buffer
-
StubMsg
.
BufferStart
==
wiredatalen
,
"%s: Buffer %p Start %p
\n
"
,
msgpfx
,
StubMsg
.
Buffer
,
StubMsg
.
BufferStart
);
ok
(
!
memcmp
(
StubMsg
.
BufferStart
,
wiredata
,
wiredatalen
),
"%s: incorrectly marshaled %08
lx %08lx %08l
x
\n
"
,
msgpfx
,
*
(
DWORD
*
)
StubMsg
.
BufferStart
,
*
((
DWORD
*
)
StubMsg
.
BufferStart
+
1
),
*
((
DWORD
*
)
StubMsg
.
BufferStart
+
2
));
ok
(
!
memcmp
(
StubMsg
.
BufferStart
,
wiredata
,
wiredatalen
),
"%s: incorrectly marshaled %08
x %08x %08
x
\n
"
,
msgpfx
,
*
(
DWORD
*
)
StubMsg
.
BufferStart
,
*
((
DWORD
*
)
StubMsg
.
BufferStart
+
1
),
*
((
DWORD
*
)
StubMsg
.
BufferStart
+
2
));
#if 0
StubMsg.Buffer = StubMsg.BufferStart;
...
...
@@ -929,13 +929,13 @@ todo_wine {
}
if
(
mem_list
)
{
ok
(
mem_list
->
magic
==
magic_MEML
,
"magic %08
l
x
\n
"
,
mem_list
->
magic
);
ok
(
mem_list
->
magic
==
magic_MEML
,
"magic %08x
\n
"
,
mem_list
->
magic
);
ok
(
mem_list
->
ptr
==
p2
,
"ptr != p2
\n
"
);
ok
(
mem_list
->
next
!=
NULL
,
"next NULL
\n
"
);
mem_list
=
mem_list
->
next
;
if
(
mem_list
)
{
ok
(
mem_list
->
magic
==
magic_MEML
,
"magic %08
l
x
\n
"
,
mem_list
->
magic
);
ok
(
mem_list
->
magic
==
magic_MEML
,
"magic %08x
\n
"
,
mem_list
->
magic
);
ok
(
mem_list
->
ptr
==
p1
,
"ptr != p2
\n
"
);
ok
(
mem_list
->
next
==
NULL
,
"next %p
\n
"
,
mem_list
->
next
);
}
...
...
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