Commit Graph

103 Commits

Author SHA1 Message Date
Huw Davies 195f183ccd oleaut32: Use the default OLE allocator to allocate BSTRs.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-22 21:29:50 +09:00
Sebastian Lackner ed16704cea oleaut32: Fix invalid memory access on 64-bit when warn+heap is used.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-22 17:54:57 +09:00
Huw Davies 924cad5f3b oleaut32: Use IMalloc_GetSize to determine the cache bucket.
This also has the effect of ignoring non-allocated memory blocks.

Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-22 01:26:16 +09:00
Huw Davies 36f454cda0 oleaut32: BSTRs should have 8 byte alignment on 64 bits.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-22 01:26:16 +09:00
Huw Davies 13bc86c034 oleaut32: Use the helper to access bstr_t.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-22 01:26:16 +09:00
Andrew Eikum 3bc2ec3371 oleaut32: Don't clear BSTR size.
The size is used during cache lookup. Clearing it will break lookup
and prevent detection of double-freeing when warn+heap is enabled.

Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-06 18:08:31 +01:00
Sebastian Lackner e559ec2ad3 oleaut32: Align terminating null character in SysAllocStringByteLen.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-29 17:51:59 +01:00
Sebastian Lackner 4bfc49a773 oleaut32: Pass size without terminating null to get_cache_entry.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-29 17:51:59 +01:00
Jacek Caban 9398c9f98f oleaut32: Added DECLSPEC_HOTPATCHABLE to a few functions.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-13 11:53:06 +09:00
Jacek Caban f50ead6358 oleaut32: Check OANOCACHE variable only on process attach. 2013-12-11 19:35:47 +01:00
Frédéric Delanoy 5ba7f79bad Assorted spelling fixes. 2013-12-03 19:41:53 +01:00
Alexandre Julliard 699eb85ce0 oleaut32: Remove redundant declaration of CLSID_PSFactoryBuffer. 2013-06-10 14:24:11 +02:00
Jacek Caban 820c7635ab oleaut32: Fixed copy&paste mistake in SysFreeString.
Spotted by Piotr.
2013-02-19 19:50:50 +01:00
Jacek Caban ed9d78d2b9 oleaut32: Don't free a string in SysFreeString if it's already in cache. 2013-02-13 19:10:14 +01:00
Jacek Caban 4a5eca88aa oleaut32: Use proper helpers for iface calls. 2012-07-27 17:05:27 +02:00
Francois Gouget fac36c55e9 Assorted typo, spelling, wording and case fixes. 2012-05-15 16:26:43 +02:00
Jacek Caban 2217e42c9d oleaut32: Added warn+heap support for cached BSTRs. 2012-05-02 20:14:04 +02:00
Jacek Caban 4eebe0bcf0 oleaut32: Use a struct for internal BSTR representation to avoid pointer magic. 2012-05-02 20:13:57 +02:00
Jacek Caban ab509cde5e oleaut32: SysStringByteLen code clean up. 2012-05-01 15:29:08 +02:00
Jacek Caban 7fded88895 oleaut32: SysStringLen code clean up. 2012-05-01 15:28:53 +02:00
Jacek Caban d53bdeca62 oleaut32: Added BSTR cache implementation. 2012-04-30 10:59:27 +02:00
Frédéric Delanoy a7cb73d39e oleaut32: Avoid harcoding array lengths. 2011-11-21 11:05:04 +01:00
Alexandre Julliard 0d37433d65 oleaut32: Remove typelib registrations. 2011-08-02 20:47:48 +02:00
Alexandre Julliard df31247ede oleaut32: Specify the PSFactoryBuffer class in the idl files. 2011-08-01 17:20:46 +02:00
André Hentschel 1ec78b8105 oleaut32: Update OaBuildVersion. 2011-05-26 17:42:46 +02:00
Peter Schellenbach 99af2f56ba oleaut32: Corrected registration flag inversion in RegisterActiveObject. 2011-03-07 17:14:09 +01:00
Alexandre Julliard 7769b05858 oleaut32: Convert dll registration to the new IRegistrar mechanism. 2010-11-24 17:59:57 +01:00
Piotr Caban 7e3fd4e3c6 oleaut32: Fix SysReAllocStringLen implementation. 2009-12-16 13:04:34 +01:00
Alexander Kochetkov ae4de9d695 oleaut32: Fix null terminator in SysReAllocStringLen. 2009-10-14 11:50:19 +02:00
Alexandre Julliard 9cb140c43d oleaut32: Use the appropriate PSFactoryBuffer guid when registering interfaces. 2009-09-23 14:32:01 +02:00
Michael Stefaniuc a3f8fd71e1 oleaut32: Remove superfluous pointer casts. 2009-02-09 14:37:23 +01:00
Alexandre Julliard 5a2c9de2e8 oleaut32: Register interfaces through dlldata.c as far as possible. 2008-12-02 21:20:32 +01:00
Alexandre Julliard 8d8ff37ca3 oleaut32: Use a dlldata.c file instead of maintaining the data manually. 2008-12-02 10:32:14 +01:00
Michael Stefaniuc f830a12ddb oleaut32: Remove redundant NULL check before SysFreeString (Smatch). 2008-09-25 11:18:59 +02:00
Dan Hipschman 9e6784c2a7 oleaut32: Add a widl-generated proxy file for ocidl.idl. 2008-09-02 18:02:04 +02:00
Jon Griffiths 8c16ae7a7f oleaut32: Fix memcpy overlapping ranges in SysReAllocStringLen. 2008-07-07 14:25:02 +02:00
Andrew Talbot 5ea25c62b8 oleaut32: Remove unneeded casts. 2008-01-16 12:16:01 +01:00
Rob Shearman 241b25b5bd oleaut32: Handle integer overflow of len in SysReAllocStringLen and SysAllocStringByteLen. 2007-11-28 11:19:10 +01:00
Francois Gouget 2993785f3a Assorted non-ANSI function declaration fixes (missing void). 2007-08-30 11:57:18 +02:00
Michael Stefaniuc 34b45b311e oleaut32: Do not use wide character constants. 2007-06-22 12:18:50 +02:00
Andrew Talbot 1ab9649079 oleaut32: Fix some typos. 2007-06-06 14:07:28 +02:00
Bernard Ladenthin 26f29fdad0 oleaut32: Better OleIconToCursor stub. 2007-01-03 12:07:41 +01:00
Marcus Meissner caa301a736 oleaut32: Protect against integer overflow in SysAllocStringLen. 2006-11-24 12:56:42 +01:00
Francois Gouget ef998ea6cb Assorted spelling fixes. 2006-10-16 11:33:38 +02:00
Hans Leidekker ce66f5d684 oleaut32: Win64 printf format warning fixes. 2006-10-13 12:08:47 +02:00
Alexandre Julliard 707060913c oleaut32: Use the standard DEFINE_OLEGUID macro to define GUIDs. 2006-06-09 21:09:35 +02:00
Jonathan Ernst 360a3f9142 Update the address of the Free Software Foundation. 2006-05-23 14:11:13 +02:00
Dmitry Timoshkov 57a579ffcd Make more arrays const. 2006-01-24 14:00:32 +01:00
Robert Shearman e7299cdf47 OleTranslateColor trace fix.
OleTranslateColor isn't a stub so don't print ":stub" in the trace
message.
2005-12-12 11:52:02 +01:00
Robert Shearman ebb839733a The PSDispatch PS class factory can manage both typelib marshalled and
IDispatch, which is NDR marshalled, so we need a wrapper to call the
appropriate CreateProxy or CreateStub function.
2005-11-02 10:54:52 +00:00