Commit graph

2952 commits

Author SHA1 Message Date
Connor McAdams a42f5f1970 combase: Use correct destination context in CoUnmarshalInterface when using the standard marshaler.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54609
Signed-off-by: Connor McAdams <cmcadams@codeweavers.com>
2023-07-13 11:51:47 +02:00
Connor McAdams b87c502a4f ole32/tests: Extend test_marshal_channel_buffer() test to include IRpcProxyBufferWrapper checks.
Signed-off-by: Connor McAdams <cmcadams@codeweavers.com>
2023-07-13 11:51:47 +02:00
Alistair Leslie-Hughes a1f8e6146d ole32: Remove DECLSPEC_HIDDEN usage. 2023-07-05 11:19:15 +02:00
Alexandre Julliard 7c1d8b29e5 ole32/tests: Use nameless unions/structs. 2023-07-04 13:07:18 +02:00
Alexandre Julliard 61a06d4bcd ole32: Use nameless unions/structs. 2023-07-04 13:07:18 +02:00
Nikolay Sivov 7ab7e299c3 ole32/git: Use CRT allocation functions. 2023-05-29 11:25:40 +02:00
Nikolay Sivov 0f72487b25 ole32/filemoniker: Use CRT allocation functions. 2023-05-29 11:25:39 +02:00
Nikolay Sivov b3c773af71 ole32/compositemoniker: Use CRT allocation functions. 2023-05-29 11:25:37 +02:00
Nikolay Sivov 873d53d864 ole32/itemmoniker: Use CRT allocation functions. 2023-05-29 11:25:35 +02:00
Nikolay Sivov 894f1cde4a ole32/pointermoniker: Use CRT allocation functions. 2023-05-29 11:25:33 +02:00
Nikolay Sivov a9d3d435bc ole32/classmoniker: Use CRT allocation functions. 2023-05-29 11:25:32 +02:00
Nikolay Sivov d4cb70107d ole32/antimoniker: Fix Enum() return error code. 2023-05-29 11:25:30 +02:00
Nikolay Sivov 8e4b95e43e ole32/antimoniker: Use CRT allocation functions. 2023-05-29 11:25:28 +02:00
Jinoh Kang d54e7cd51d combase: Fix reading from beyond the end of a HGLOBAL stream. 2023-05-15 11:26:12 -05:00
Alex Henrie da403f0b31 ole32: Avoid calling RtlInitUnicodeString on a static constant. 2023-02-08 17:32:30 +01:00
Alexandre Julliard c2fab85649 ole32/tests: Raise an exception instead of accessing a bad pointer directly.
This avoids a compiler warning.
2023-01-27 13:39:07 +01:00
Rémi Bernon 93f8819c95 ole32: Allocate and free moniker lists with CRT allocations.
The RunningObjectTableImpl_EnumRunning codepath returns a list allocated
from combase MIDL_user_allocate, which uses msvcrt heap.
2023-01-13 11:14:51 +01:00
Rémi Bernon a547efc094 ole32: Reset IMoniker data pointer to NULL on failure.
To avoid double free when the caller releases the object.
2023-01-13 11:14:50 +01:00
Rémi Bernon 85fdc7d60e ole32: Allocate IEnumSTATDATA data with the process heap.
It will later be freed in EnumSTATDATA_Release with HeapFree, and the
copy code path may allocate the member with HeapAlloc.
2023-01-13 11:14:48 +01:00
Rémi Bernon af43e72860 ole32: Use CRT allocation for MIDL_user_(allocate/free).
To match combase allocations, as for instance we're freeing pointers
returned from InternalIrotRevoke, which are allocated using combase
MIDL_user_allocate.
2023-01-13 11:14:47 +01:00
Alexandre Julliard 3de15569fe include: Use proper dllimports for OLE functions. 2022-12-07 13:51:37 +01:00
Rémi Bernon da929946e6 ole32: Call GlobalReAlloc with GMEM_MOVEABLE flag.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53474
2022-11-22 18:27:31 +01:00
Alex Henrie 02b226f75a ole32: Fix memory leak on error path in composite_get_(left|right)most (Coverity). 2022-11-17 09:58:43 +01:00
Alex Henrie e6869fe920 ole32: Fix memory leak on error path in CompositeMonikerImpl_CommonPrefixWith (Coverity). 2022-11-16 10:11:37 +01:00
Alex Henrie d222341f6c ole32: Correct warning message in composite_get_leftmost.
Looks like a copy-paste error.
2022-11-16 10:10:42 +01:00
Connor McAdams 00c8117a72 combase: Omit thread ID from the stub manager ipid for MTA objects.
It is possible for a thread that creates an MTA to call
CoUninitialize() and not destroy the MTA if another thread has
entered the MTA in the meantime. If the original thread then creates
an STA, subsequent attempts to find the MTA with 'apartment_findfromtid'
will get the original thread's STA. To avoid this, don't set a TID value
in the stub manager IPID value to indicate that the stub resides in the
MTA.

Signed-off-by: Connor McAdams <cmcadams@codeweavers.com>
2022-08-30 21:38:39 +02:00
Rémi Bernon 15d01a2a12 ole32/tests: Update IStream_SetSize with large size test result.
The high part is ignored, and OOM error is only returned if there's not
enough memory available, not because of GlobalReAlloc specific behavior.

Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
2022-06-09 20:55:20 +02:00
Drew Ronneberg 54099b8e95 ole32: Remove obsolete -D_OLE32_ from Makefile.in.
Signed-off-by: Drew Ronneberg <drew_ronneberg@yahoo.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-13 22:11:41 +02:00
Alexandre Julliard 1f71ea3106 ole32: Fix sign expansion of codepage values.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-14 09:44:16 +02:00
Eric Pouech a74217447c ole32/tests: Enable compilation with long types.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-02 20:17:15 +01:00
Eric Pouech 3aa87091f0 ole32/tests: Use correct integral type.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-02 20:17:15 +01:00
Eric Pouech 3a843a43b4 ole32/tests: Don't outdent todo_wine*.
This prevents -Wmisleading-indentation warnings (Mingw GCC11).

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-21 18:55:22 +01:00
Nikolay Sivov 40c6c18ba2 include: Update another HRESULT definition.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-10 10:41:11 +01:00
Nikolay Sivov 233042bd75 ole32: Build without WINE_NO_LONG_TYPES.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-09 10:58:46 +01:00
Eric Pouech adad897154 ole32: Use correct integral type.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-02 13:46:34 +01:00
Fabian Maurer 812944ec17 ole32/tests: Avoid "misleading indentation" warnings.
Signed-off-by: Fabian Maurer <dark.shadow4@web.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-01-27 22:04:05 +01:00
Alexandre Julliard f0cd33c69e include: Add support for defining Win32 types as 'long' where possible.
Add -DWINE_NO_LONG_TYPES to modules that still have compilation
warnings with long types.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-01-27 20:38:22 +01:00
Alexandre Julliard ae2693e2c4 include: Use long type by default in GUID definition.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-01-27 17:56:07 +01:00
Louis Lenders 18e331fd63 ole32: Add stub for OleConvertIStorageToOLESTREAMEx.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52298
Signed-off-by: Louis Lenders <xerox.xerox2000x@gmail.com>
Signed-off-by: Esme Povirk <esme@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-01-25 09:26:19 +01:00
Dmitry Timoshkov 21cf2dd15f ole32: Add CreateObjrefMoniker() stub implementation..
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-11-26 11:58:19 +01:00
Nikolay Sivov ecd8fdfb38 combase: Clarify stream data format used by FT marshaler.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-10-29 09:24:54 +02:00
Nikolay Sivov f264ba7661 ole32/tests: Remove unused variable.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-10-01 12:37:06 +02:00
Nikolay Sivov d3446e1ff4 ole32: Use public function to get file extension in GetClassFile().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-09-30 21:22:34 +02:00
Nikolay Sivov 966d74a1b4 ole32/composite: Cleanup enumerator methods.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-09-30 21:22:29 +02:00
Nikolay Sivov b557c39555 ole32/composite: Disable cloning of enumerator instances.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-09-30 21:22:26 +02:00
Nikolay Sivov 61f8991fd9 ole32/composite: Do not use enumerators and antimoniker composition in RelativePathTo().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-09-30 21:22:23 +02:00
Nikolay Sivov 7de48a7416 ole32/composite: Fix argument handling in component enumerator methods.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-09-30 21:22:21 +02:00
Nikolay Sivov f95fe051f0 ole32/composite: Reimplement Reduce().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-09-29 21:38:12 +02:00
Nikolay Sivov 5855196be9 ole32/composite: Do not use antimoniker composition in BindToStorage().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-09-29 21:38:12 +02:00
Nikolay Sivov 0806f9531f ole32/composite: Cleanup IsRunning() implementation.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-09-29 21:38:12 +02:00