Commit Graph

93 Commits

Author SHA1 Message Date
Michael Stefaniuc 137acffdf4 ole32: Use wide-char string literals.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-11-27 10:18:25 +01:00
Alexandre Julliard 0f47bb66a6 ole32: Build with msvcrt.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-06-17 09:41:13 +02:00
Andrey Gusev 8bfc9bd2ee Assorted typos fixes.
Signed-off-by: Andrey Gusev <andrey.goosev@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-27 15:38:30 +09:00
Huw Davies 5ae2b5ae93 ole32: Release interfaces as part of Stop.
This can now be done as Stop will no longer be called from within an object call.

Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-15 00:53:19 +09:00
Huw Davies 719c479a36 ole32: Defer calling Stop in an OnClose notification during an object call.
The OnClose notification may arrive during a call to the object.  Releasing the
object's interfaces at this point would be bad, so delay this until after the
object call returns.

Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-15 00:53:19 +09:00
Huw Davies 79598c4803 ole32: Call the cache's OnRun and OnStop methods.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-15 00:53:18 +09:00
Huw Davies e4ec89f2b0 ole32: Return OLE_E_NOTRUNNING on a cache-miss when the object isn't running.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-15 00:53:18 +09:00
Huw Davies 4fcc5fec57 ole32: Always use object_is_running to check whether the object is running.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-14 20:36:55 +09:00
Huw Davies a56a0eb063 ole32: Rewrite _Run() to return early on failure.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-14 20:36:43 +09:00
Nikolay Sivov 961b1a270f ole32: Remove a couple of interface casts. 2015-04-06 12:09:17 +09:00
Piotr Caban c0a17a4f09 ole32: Don't pass CLSCTX_INPROC_SERVER and CLSCTX_INPROC_HANDLER flags to CoCreateInstance in DefaultHandler_Run. 2013-02-27 19:23:48 +01:00
Roman Dadkov 9e145eebdf ole32: Fix dwClsContext parameter of a CoCreateInstance call in DefaultHandler_Run. 2012-10-10 20:34:11 +02:00
Jacek Caban 153b94b3c5 ole32: Use proper helpers for iface calls. 2012-08-13 16:28:48 +02:00
Michael Stefaniuc 43ae84636a ole32: Avoid TRUE:FALSE conditional expressions. 2012-08-13 11:50:42 +02:00
Nikolay Sivov 24a690e90e ole32: Use a single implementation for 1Ole stream initialization. 2012-07-19 15:44:25 +02:00
Michael Stefaniuc 91ecb05f29 ole32: Standardize the COM usage in defaulthandler.c. 2010-12-23 13:47:27 +01:00
David Hedberg a5caff3bac ole32: Pass failures from delegate object's ::QueryInterface in default handler. 2010-10-21 12:28:51 +02:00
Nikolay Sivov 5185409144 ole32: Remove redundant variables. 2010-07-21 17:38:37 +02:00
Gerald Pfeifer 889900f020 ole32: Fix return value of DefaultHandler_SetClientSite. 2010-05-03 15:40:13 +02:00
Rob Shearman 6592c25bc7 ole32: Fix circular reference count in default handler objects.
This is caused by caching a pointer and reference to the data cache's
IPersistStorage interface without managing reference counts
appropriately.
2009-11-24 15:54:56 +01:00
Rob Shearman 24cccbf4d1 ole32: Add inproc handler object creation support for CoCreateInstance. 2009-11-24 10:46:12 +01:00
Huw Davies e67da11716 ole32: Implement OleCreateEmbeddingHelper.
Based on a patch by Rob Shearman.
2009-06-26 11:59:04 +02:00
Michael Stefaniuc 0449701c31 ole32: Remove superfluous pointer casts. 2009-02-11 12:29:56 +01:00
Nikolay Sivov 11c1d7a0e7 ole32: Fix return value for DefaultHandler_GetMiscStatus. 2009-01-07 12:27:34 +01:00
Huw Davies 8355eeaa21 ole32: Defer releasing the delegate interfaces until after we return from an OnClose notification. 2008-11-25 12:17:27 +01:00
Huw Davies 8730bf66c9 ole32: Factor out the code to release the delegate interfaces. 2008-11-25 12:17:24 +01:00
Huw Davies 5937ddd403 ole32: Call the object's GetClassID if it's running. 2008-10-31 14:01:17 +01:00
Huw Davies b05d392dfb ole32: Try to load the '\1Ole' stream and create it if it doesn't exist. 2008-10-28 12:14:11 +01:00
Huw Davies 0cc2c53107 ole32: Create the '\1Ole' stream. 2008-10-28 12:14:06 +01:00
Huw Davies 92202feff3 ole32: Call the appropriate storage function when we run the object. 2008-10-23 12:13:49 +02:00
Huw Davies 94d753c63d ole32: Query the object's dirty state if it's running. 2008-10-21 13:22:51 +02:00
Huw Davies 3a0ed83fb0 ole32: Call the object's IPersistStorage_HandsOffStorage() if the object is running. 2008-10-21 13:22:51 +02:00
Huw Davies 89edf3a52f ole32: Call the object's IPersistStorage_SaveCompleted() if the object is running. 2008-10-21 13:22:51 +02:00
Huw Davies 72f82c04ec ole32: Call the object's IPersistStorage_Save() if the object is running. 2008-10-21 13:22:51 +02:00
Huw Davies 5b1520761d ole32: Call the object's IPersistStorage_InitNew() if the object is running. 2008-10-21 13:22:51 +02:00
Huw Davies 3019a8f195 ole32: Call the object's IPersistStorage_Load() if the object is running. 2008-10-21 13:22:51 +02:00
Huw Davies ed28886f9d ole32: Call the object's IOleObject_IsUpToData() if the object is running. 2008-10-21 13:22:51 +02:00
Huw Davies 5ba96d7ae1 ole32: Call the object's own IOleObject_GetUserType() if the object is running. 2008-10-21 13:22:51 +02:00
Huw Davies f2cf617f00 ole32: Partial implementation of IOleObject_Update(). 2008-10-21 13:22:50 +02:00
Huw Davies ec73ad29e0 ole32: Remove an unneeded WINAPI and remove some useless comments. 2008-10-06 12:51:53 +02:00
François Dorin db941f43b6 ole32: Fix return value for DefaultHandler_SetExtent. 2008-07-28 12:06:29 +02:00
Austin English 1b24da3aa0 ole32: Spelling fixes. 2008-04-10 09:51:12 +02:00
Andrew Talbot 4971f2f687 ole32: Assign to structs instead of using memcpy. 2008-03-11 12:11:51 +01:00
Alex Villacís Lasso 5da0c8b18f ole32: Fix forgotten IPersistStorage vtable. 2007-08-27 12:01:31 +02:00
Huw Davies 54f2f60b54 ole32: The default handler needs to have its own implementation of IPersistStorage.
For now we forward the methods to the data cache as before.
2007-08-09 13:53:02 +02:00
Huw Davies e97c5be2ed ole32: Factor out the running object test into a separate function. 2007-08-09 13:52:54 +02:00
Huw Davies 0c8ce0d68b ole32: Fix a few comments. 2007-08-09 13:52:48 +02:00
Michael Stefaniuc 21ff87bf50 ole32: Win64 printf format warning fixes. 2006-10-16 10:53:28 +02:00
Robert Shearman 53d01d2764 ole32: DefaultHandler_GetData and DefaultHandler_QueryGetData should
both defer to the real data object if the cached versions fail and we
are running.
2006-09-07 11:43:59 +02:00
Robert Shearman c350e0000f ole32: Add a check for NULL This->dataAdviseHolder in DefaultHandler_Stop.
Cleanup DefaultHandler_GetCanonicalFormatEtc by using
This->pDataDelegate instead of querying for IDataObject from
This->pOleDelegate.
2006-08-09 20:40:17 +02:00