Commit Graph

1017 Commits

Author SHA1 Message Date
Andrew Talbot
273b40656b rpcrt4: Declare some functions static. 2009-01-19 13:36:26 +01:00
Francois Gouget
5656e41640 rpcrt4/tests: Add a trailing '\n' to ok() calls. 2009-01-14 14:52:18 +01:00
Ge van Geldorp
a9950e3cee rpcrt4/tests: Remove NdrVaryingArrayUnmarshall() test, it is broken on Windows.
The failures in rpcrt4:server on Windows are caused by an access violation
thrown in NdrVaryingArrayUnmarshall() called from get_5numbers(). I've
created a minimum get_5numbers() test with Microsoft tools and that throws
the same access violation. The access violation disappears when zeroing
out the StubMsg before calling NdrClientInitializeNew(), so my guess is
Windows NdrVaryingArrayUnmarshall() uses an uninitialized member.
2009-01-13 16:39:30 +01:00
Michael Karcher
1c56d293f0 widl: Dereference operator in expr works on any declared pointer. 2009-01-12 16:53:18 +01:00
Rob Shearman
59158fb25c rpcrt4: Unmarshalling functions should always set fMustAlloc when allocating memory.
The memory is uninitialised and so further unmarshalling shouldn't try
to reuse any memory. fMustAlloc is always set to TRUE when allocating
memory so that it is clear that the unmarshalling is safe and to avoid
future problems with change or the code being copied.
2009-01-12 13:07:31 +01:00
Michael Stefaniuc
c171379f47 include: Use ULONG in rpcdcep.h for Win64 compatibility. 2009-01-12 13:06:44 +01:00
Alexandre Julliard
450e9e3adf rpcrt4/tests: Fix an uninitialized pointer check for Win64. 2009-01-09 18:08:57 +01:00
Alexandre Julliard
9d09985ad1 rpcrt4: Fix an unused value warning on non-i386. 2009-01-08 17:30:09 +01:00
Alexandre Julliard
1639f1e507 rpcrt4/tests: Avoid printing pointer differences in traces. 2009-01-08 13:02:40 +01:00
Francois Gouget
581e390115 winapi_test: The tests don't support WIN64 yet so disable them there. 2009-01-08 12:47:22 +01:00
Francois Gouget
411f5d22c0 winapi_test: The real tests are done at compile time so use C_ASSERT() instead of ok(). Do only one test per line so one can know exactly what went wrong. 2009-01-08 12:46:39 +01:00
Francois Gouget
9f62c9b7a8 winapi_test: Fix TEST_FIELD() so it correctly tests the field size. 2009-01-08 12:44:49 +01:00
Francois Gouget
43c18c1321 winapi_test: FIELD_ALIGNMENT() is redundant so remove it. 2009-01-08 12:43:15 +01:00
Francois Gouget
2e668d2572 winapi_test: Updated so the generated tests work. 2009-01-08 12:42:12 +01:00
Francois Gouget
ada97dc209 Assorted spelling fixes. 2009-01-07 14:41:24 +01:00
Michael Stefaniuc
57ab0cd9a6 include: sspi.h: Use the Win types as per MSDN.
This improves the Win64 compatibility.
2009-01-06 12:43:46 +01:00
Michael Stefaniuc
4c7a6694cd include: Change unsigned long to ULONG in rpcdce.h for Win64 compatibility.
Also fix the compiler warnings introduced by this change.
2009-01-04 13:34:51 +01:00
Michael Stefaniuc
e86eb8efa6 include: Change RPC_STATUS from long to LONG for Win64 compatibility.
Also fix the compiler warnings introduced by this change.
2009-01-04 13:34:38 +01:00
Alexandre Julliard
8e1b59cb9a rpcrt4: Disable TCP/IP connection support if we don't have socketpair. 2008-12-22 19:55:05 +01:00
Francois Gouget
6e483affcf rpcrt4/tests: Fix the trailing '\n' in an ok() call. 2008-12-17 15:27:28 +01:00
Paul Vriens
5021965d2e rpcrt4/tests: Move function pointer initialization to the init function. 2008-12-16 12:51:16 +01:00
Paul Vriens
1aa9e3846c rpcrt4/tests: Use GetModuleHandle instead of LoadLibrary. 2008-12-16 12:51:12 +01:00
Alexandre Julliard
42dbdb138a rpcrt4: Make a variable static. 2008-12-04 12:48:08 +01:00
Alexandre Julliard
797ee403c1 rpcrt4: Create the NumMethods key too when registering an interface. 2008-11-29 13:05:11 +01:00
Alexandre Julliard
ad54700b94 rpcrt4: Use RegDeleteTree to properly unregister interfaces. 2008-11-29 13:02:08 +01:00
Alexandre Julliard
77b3864fed rpcrt4: Convert the dll registration routines to Unicode. 2008-11-29 13:01:29 +01:00
Francois Gouget
bbc4413548 rpcrt4: Remove WINAPI on static functions where not needed. 2008-11-26 12:10:54 +01:00
Alexandre Julliard
f1d0f81d26 rpcrt4/tests: Fix test failures on Win9x. 2008-11-20 22:44:46 +01:00
Ricardo Filipe
16920c1da7 rpcrt4: Fixed dead increments (llvm/clang). 2008-11-19 12:15:37 +01:00
Andrew Talbot
99ae980c0d rpcrt4: Sign-compare warnings fix. 2008-11-07 10:56:48 +01:00
Stefan Leichter
79bbddd431 rpcrt4: Add stub for MesEncodeDynBufferHandleCreate. 2008-10-23 12:17:20 +02:00
Alexandre Julliard
83b6c8a5fa rpcrt4: Convert source files to utf-8. 2008-10-18 19:20:44 +02:00
Juan Lang
a504a79d65 rpcrt4: Add tests for UuidCreate. 2008-10-14 13:41:56 +02:00
Rob Shearman
b919443a58 rpcrt4: The type referred to by the wire_marshal attribute in server.idl must be a pointer.
Therefore, declare the structure as user_bstr_t and make wire_bstr_t
be a typedef to a pointer of this type.
2008-10-14 13:41:54 +02:00
Huw Davies
c74de4a1ce rpcrt4: Actually set an unmarshalled object ptr to NULL when a NULL pointer id is received. 2008-10-02 10:28:19 -05:00
Rob Shearman
62a1beebbf rpcrt4: Don't call VirtualFree with MEM_RELEASE and non-zero size.
The calls fail with ERROR_INVALID_PARAMETER. Instead just call with a
zero size which performs the intended function.
2008-09-23 16:00:05 +02:00
Hans Leidekker
e511474d47 rpcrt4: Add stub implementations for RpcMgmtInqStats and RpcMgmtStatsVectorFree. 2008-09-23 14:03:19 +02:00
Rob Shearman
34dd534250 rpcrt4: Fix memory leak of 0-byte buffer allocated during processing of bind packets.
In this case conn->server_binding will be NULL and consequently
bind->Handle will be NULL, causing I_RpcFreeBuffer to fail. Therefore
just use I_RpcFree to free the buffer as that is just what
I_RpcFreeBuffer does under the hood anyway.
2008-09-12 16:49:56 +02:00
Rob Shearman
ffd37b0eec rpcrt4: Fix memory leaks of hdr in error paths in RPCRT4_io_thread. 2008-09-12 16:49:52 +02:00
Rob Shearman
f12e445ce5 rpcrt4: Don't crash in NdrDllGetClassObject when a NULL pclsid is passed in.
Add tests for this.
2008-09-12 16:49:48 +02:00
Rob Shearman
be9909ad1d rpcrt4: Print error messages from RPC message functions when they are called in an invalid way. 2008-09-12 16:49:45 +02:00
Rob Shearman
8cc3adea52 rpcrt4: Free the memory for a registered interface that is in use and when WaitForCallsToComplete is 0. 2008-09-12 16:49:42 +02:00
Alexandre Julliard
da95db8d5b rpcrt4/tests: Fix a couple of test failures on Windows. 2008-09-11 14:32:30 +02:00
Paul Vriens
9ee160cf55 rpcrt4/tests: Fix some failures on XP-SP3. 2008-09-11 11:43:14 +02:00
Rob Shearman
a8f7c716ef rpcrt4: Change type of len parameter of NdrAllocate from size_t to SIZE_T.
Use SIZE_T as it matches the size that Windows programs expect whereas
size_t is platform-dependent.
2008-09-08 12:51:37 +02:00
Rob Shearman
f2e47cc2a2 rpcrt4: Fix typo in unescape_string_binding_componentW.
string_binding is of type "const WCHAR *" so we shouldn't be calling
strlen on it, we should be calling strlenW on it.
2008-09-08 12:47:20 +02:00
Rob Shearman
170dd5ff8d rpcrt4: Only start the RpcSs process for handles to the local server. 2008-09-08 12:47:20 +02:00
James Hawkins
bb6a8f36c3 rpcrt4: Fix a failing test in Vista. 2008-09-03 14:21:42 +02:00
James Hawkins
6b20075b1f rpcrt4: Remove a test that was replaced by a better test. 2008-09-03 13:14:51 +02:00
James Hawkins
080d8e7261 rpcrt4: Fix several test failures in Vista. 2008-08-29 13:24:22 +02:00