Commit Graph

2318 Commits

Author SHA1 Message Date
Vincent Povirk 6417a277cf ole32: Map STGM_SHARE_EXCLUSIVE to FILE_SHARE_READ. 2014-05-05 10:53:35 +02:00
Vincent Povirk 04735d6f39 ole32: Use share modes when creating storage files. 2014-05-05 10:53:30 +02:00
Vincent Povirk a60d41d70a ole32: Use symbolic names for range lock offsets. 2014-05-05 10:53:27 +02:00
Francois Gouget 3d70f86fe2 ole32/tests: Add a trailing '\n' to an ok() call. 2014-05-02 17:15:24 +02:00
Huw Davies dcfd901c83 ole32/tests: Fix win8 test failures. 2014-05-01 16:32:09 +02:00
Frédéric Delanoy 2e5cb7aac8 Assorted spelling/grammar fixes. 2014-04-30 18:34:20 +02:00
Vincent Povirk 65887802c5 ole32: Initial storage file locking implementation. 2014-04-29 11:26:51 +02:00
Vincent Povirk e6c58c74ad ole32: Reserve the range lock sector. 2014-04-29 11:26:47 +02:00
Vincent Povirk a00f43d7e0 ole32/tests: Add tests for sharing storages in transacted mode. 2014-04-29 11:26:33 +02:00
Vincent Povirk b8c60aaeec ole32/tests: Add tests for storage locking. 2014-04-29 11:25:55 +02:00
Dmitry Timoshkov 5356c945cd ole32: Add support for VT_DISPATCH/VT_UNKNOWN to PropVariantClear and PropVariantCopy. 2014-04-21 11:09:53 +02:00
Dmitry Timoshkov f9c40c37cd ole32: If number of VT_VECTOR elements is 0 there is no need to allocate memory. 2014-04-18 13:09:19 +02:00
Dmitry Timoshkov d68c13a894 ole32/tests: Add some tests for PropVariantCopy. 2014-04-18 13:09:11 +02:00
Dmitry Timoshkov 5e7251b937 ole32: Revert part of 3cb0c81336.
VT_INT|VT_VECTOR and VT_UINT|VT_VECTOR are not supposed to be supported
by PropVariantClear and PropVariantCopy.
2014-04-18 13:08:59 +02:00
Dmitry Timoshkov f35078ee40 ole32/tests: Fix crashes in PropVariantClear tests under win64. 2014-04-18 13:08:57 +02:00
Dmitry Timoshkov ccefbee73b ole32/tests: Fix crashes in PropVariantClear tests under win2000 and XP. 2014-04-17 10:44:55 +02:00
Dmitry Timoshkov 0946c154fa ole32: PropVariantClear should always reset contents of the passed in PROPVARIANT. 2014-04-16 10:55:07 +02:00
Dmitry Timoshkov 7de7fc653b ole32/tests: Add more tests for PropVariantClear. 2014-04-16 10:54:54 +02:00
Dmitry Timoshkov 3cb0c81336 ole32: Add support for VT_INT/VT_UINT to PropVariantClear and PropVariantCopy. 2014-04-16 10:54:48 +02:00
Piotr Caban 2fbbe143be ole32: Add more SetConvertStg amd WriteFmtUserTypeStg tests. 2014-04-07 19:06:42 +02:00
Piotr Caban 0d4c693a7b ole32: Add OleDoAutoConvert implementation. 2014-04-07 19:06:39 +02:00
Piotr Caban 2db5418e02 ole32: Get CLSID from IStorage object in WriteFmtUserTypeStg. 2014-04-07 19:06:36 +02:00
Piotr Caban 046d7c6d42 ole32: Try to open 1Ole stream before trying to create it in SetConvertStg function. 2014-04-07 19:06:33 +02:00
Piotr Caban f83d24d4f7 ole32: Don't write empty CLIPFORMAT in WriteFmtUserTypeStg. 2014-04-07 19:06:28 +02:00
Piotr Caban 306e98425b ole32: Null terminate strings in STREAM_ReadString function. 2014-04-07 19:06:26 +02:00
Nikolay Sivov 4768ac4413 ole32: Fix leaks on error paths (Coverity). 2014-03-25 10:56:35 +01:00
Nikolay Sivov 43b5f46fcd ole32: Fix some leaks on early returns (Coverity). 2014-03-25 10:56:29 +01:00
Piotr Caban 770213e16c ole32: Update reference counter of returned moniker in CreateGenericComposite. 2014-03-10 19:13:56 +01:00
Vincent Povirk 2e384c4f95 ole32: Use pstgPriority if specified in StgOpenStorage. 2014-03-05 11:48:57 +01:00
Daniel Lehman cdc03fa9b8 ole32: Make some COM functions hot-patchable. 2014-03-05 11:48:13 +01:00
Piotr Caban 9f9fb6b7f1 ole32/tests: Fix DoDragDrop tests. 2014-03-04 11:50:50 +01:00
Stefan Dösinger 97569e4e4a ole32: Make CoCreateInstance hookable for Steam. 2014-03-03 17:46:47 +01:00
Piotr Caban 6d1ab7fa16 ole32: Add more DoDragDrop tests. 2014-03-03 17:02:35 +01:00
Piotr Caban efbd52983a ole32: Fix DROPEFFECT value in OLEDD_TrackStateChange. 2014-03-03 17:02:33 +01:00
Piotr Caban 68d3a136f6 ole32: Merge OLEDD_TrackMouseMove and OLEDD_TrackStateChange functions. 2014-03-03 17:02:32 +01:00
Piotr Caban bc2c6d39a6 ole32: Change DoDragDrop return value on IDropTarget::Drop call. 2014-03-03 17:02:31 +01:00
Nikolay Sivov ffcced0f39 ole32/tests: Handle context generation failure better. 2014-02-20 11:20:00 +01:00
Frédéric Delanoy a0c258460b ole32/tests: Use wine_dbgstr_guid for printing GUIDs. 2014-02-12 19:15:21 +01:00
Nikolay Sivov e593c3068c ole32: Remove ERR() output that's not really helpful. 2014-02-11 19:19:13 +01:00
Nikolay Sivov 747c649d99 ole32: Use precomposed table for GUID from string conversion. 2014-02-11 19:19:13 +01:00
Frédéric Delanoy 0f2bed51bd Assorted spelling fixes. 2014-02-10 15:47:29 +01:00
Nikolay Sivov cdd932a060 ole32: Separate IIDFromString() for CLSIDFromString(), fix corner cases and return values. 2014-02-10 10:42:57 +01:00
Nikolay Sivov d1c4871012 ole32: Use CoTaskMemAlloc() instead of IMalloc directly. 2014-02-10 10:42:29 +01:00
Nikolay Sivov 62d9b5a0e0 ole32: Implement CoGetInstanceFromIStorage(). 2014-02-07 11:05:14 +01:00
Nikolay Sivov 35f218c39e ole32: Implement CoGetInstanceFromFile(). 2014-02-06 17:08:14 +01:00
André Hentschel b1fed4e9f1 ole32: Use boolean return value in boolean function. 2014-01-29 17:29:05 +01:00
Frédéric Delanoy 86a9e6a366 ole32/tests: Use common wine_dbgstr_guid implementation from test.h. 2014-01-29 14:50:52 +01:00
Alexandre Julliard 0d533cf0bd makefiles: Allow define arguments to be specific to a single file. 2014-01-07 12:20:25 +01:00
Alexandre Julliard 99ef0d6ff0 makefiles: Get rid of the MAKE_TEST_RULES variable. 2014-01-02 12:13:16 +01:00
Alexandre Julliard 5e7416e5c8 makefiles: Get rid of the MAKE_DLL_RULES variable. 2014-01-02 12:08:18 +01:00
Alexandre Julliard 1adaad4c89 makefiles: Remove no longer needed dlldata.o and testlist.o extra objects. 2013-12-31 19:05:12 +01:00
Alexandre Julliard d08ff3ff19 makefiles: Use a single variable for all types of idl files. 2013-12-31 18:15:17 +01:00
Nikolay Sivov f041c2c554 ole32: Call moniker methods with proper wrappers. 2013-12-31 12:27:05 +01:00
Frédéric Delanoy 43d05cc59e ole32/tests: Constify some character strings. 2013-12-27 14:31:53 +01:00
Nikolay Sivov 5f66fb4feb ole32: Fix a memory leak caused by copy/pasted fragment (Coverity). 2013-12-09 11:42:53 +01:00
Nikolay Sivov b968c9c542 ole32: Fix refcount of returned enumeration instances. 2013-12-06 13:15:22 +01:00
Nikolay Sivov aeb35b20ec ole32: Store categories with offset so it's possible to copy them directly. 2013-12-06 13:15:19 +01:00
Nikolay Sivov 4de8d4b0ba ole32: Use private define for char length of GUID string representation. 2013-12-06 13:15:15 +01:00
Nikolay Sivov 03f2b6e989 ole32: COM cleanup of IEnumGUID implementations. 2013-12-06 13:15:11 +01:00
Nikolay Sivov a6944484a4 ole32: Explicitly check for S_OK. 2013-12-05 12:40:55 +01:00
Nikolay Sivov 97ec8b0150 ole32: Use existing code to return IMarshal from CoGetStandardMarshal(). 2013-12-05 12:40:55 +01:00
Nikolay Sivov d52f18da8e ole32: COM cleanup for StdMarshal. 2013-12-05 12:40:55 +01:00
Nikolay Sivov 3b6d06e33c ole32: Trace library path to be added to list. 2013-12-04 11:07:29 +01:00
Frédéric Delanoy 5ba7f79bad Assorted spelling fixes. 2013-12-03 19:41:53 +01:00
André Hentschel 04f5160c93 ole32/tests: Don't crash when StgOpenStorage fails. 2013-11-27 10:53:47 +01:00
Frédéric Delanoy 57d7f74d34 Assorted spelling fixes. 2013-11-21 19:44:46 +01:00
Frédéric Delanoy 37abf45e6c ole32: Use BOOL type where appropriate. 2013-11-20 11:25:55 +01:00
Nikolay Sivov d0bf7f4eaf ole32: Added activation context support for OleRegGetMiscStatus(). 2013-11-11 20:56:20 +01:00
Alexandre Julliard c7803b885b makefiles: Add makedep pragmas for registration idl files. 2013-11-05 20:38:18 +01:00
Alexandre Julliard 074f30b9e3 makefiles: Add makedep pragmas for proxy idl files. 2013-11-05 20:38:18 +01:00
Alexandre Julliard c3a48aab20 makefiles: Add makedep pragmas for client and server idl files. 2013-11-05 20:38:18 +01:00
Nikolay Sivov cd6e41dd9a ole32: Use real object CLSID when creating instance from context info. 2013-11-01 14:17:55 +01:00
Frédéric Delanoy 4473ce4db9 Assorted spelling fixes. 2013-10-30 09:46:27 +01:00
Nikolay Sivov 0af3bd8365 ole32: Support activation context in CLSIDFromProgID(). 2013-10-25 11:12:31 +02:00
Nikolay Sivov f96631e110 ole32: Add a helper to map ProgID to CLSID using registry. 2013-10-25 11:12:27 +02:00
Huw Davies 5077fc895f ole32: If an object exposes IExternalConnection then don't take down the stub manager if we have remaining weak refs in a call that would otherwise ignore them. 2013-10-24 19:01:57 +02:00
Huw Davies 1864db2faa ole32: Call IExternalConnection_ReleaseConnection with the correct final parameter. 2013-10-24 19:01:57 +02:00
Huw Davies 8235b55917 ole32: When releasing marshal data of a normal ref ignore any remaining weak refs. 2013-10-24 19:01:56 +02:00
Huw Davies 17d81e0987 ole32/tests: Add some tests for CoReleaseMarshalData with a combination of normal and weak marshals. 2013-10-24 19:01:56 +02:00
Huw Davies 61fb28de3f ole32/tests: Make the two reference marshalling thread more generic. 2013-10-24 19:01:56 +02:00
Huw Davies 14a879085e ole32/tests: Extend the lifecycle tests to objects which expose IExternalConnection. 2013-10-24 19:01:56 +02:00
Nikolay Sivov 03dbbe2103 ole32: Support activation context in ProgIDFromCLSID(). 2013-10-22 16:37:41 +02:00
Nikolay Sivov e02b1687aa ole32: Support activation context redirection in CoGetPSClsid(). 2013-10-22 16:37:40 +02:00
Nikolay Sivov af93b53082 ole32: Support registration-free COM in CoGetClassObject(). 2013-10-21 20:23:55 +02:00
Huw Davies 29c6e10fd8 ole32/tests: Add tests to show that CoLockObjectExternal() calls ReleaseConnection() with the appropriate value for fLastReleaseCloses. 2013-10-18 16:56:57 +02:00
Alexandre Julliard d67b99aef2 ole32: Delay registering the apartment class until needed. 2013-10-17 20:29:21 +02:00
Nikolay Sivov 026b711483 ole32/tests: Compile with -D__WINESRC__. 2013-10-16 11:41:18 +02:00
Frédéric Delanoy 4bb61ec0df ole32: Use BOOL type where appropriate. 2013-10-15 14:28:20 +02:00
Alexandre Julliard 55e44092bd makefiles: Remove useless definitions of COM_NO_WINDOWS_H. 2013-10-14 16:05:31 +02:00
Michael Stefaniuc 0e681027a2 tests: Compile the tests by default with -D__WINESRC__. 2013-10-02 11:04:02 +02:00
Michael Stefaniuc 2a39cb377a dlls: Replace the remaining CONSTs. 2013-09-25 11:49:20 +02:00
Nikolay Sivov 84d9b2502e ntdll: Added compatible ProgID section. 2013-09-13 10:54:53 +02:00
Nikolay Sivov 8902aae991 ole32/tests: Some tests for redirection in CoGetPSClsid(). 2013-08-30 11:46:46 +02:00
Nikolay Sivov c192885df4 ole32: Missing MiscStatus key is not a failure for OleRegGetMiscStatus(). 2013-08-27 11:50:53 +02:00
Nikolay Sivov 15bc45a54c ole32/tests: Test for OleRegGetMiscStatus() redirection behaviour. 2013-08-26 17:29:24 +02:00
Nikolay Sivov 4d565644b6 ole32: Release marshal info on error path. 2013-08-26 14:59:15 +02:00
Nikolay Sivov 98f3ecc32a ole32: GIT can be released on process detach only. 2013-08-23 10:41:24 +02:00
Nikolay Sivov 43d5d86716 ole32: Fix IClassFactory initialization and QueryInterface behavior for GIT. 2013-08-22 10:28:17 +02:00
Nikolay Sivov ba999f05e1 ole32: Test HRESULT values using proper success code. 2013-08-20 12:01:38 +02:00
Nikolay Sivov 2f21130f2e ole32: Fix standard GIT initialization. 2013-08-20 12:01:35 +02:00
Nikolay Sivov 7a69c2f169 ole32/tests: More tests that actually show CLSID/ProgId redirection in action. 2013-07-19 11:57:01 +02:00
Nikolay Sivov cf087d0eb7 ole32/tests: Tests for CLSIDFromProgID() and ProgIDFromCLSID(), regarding activation context. 2013-07-12 17:57:45 +02:00
Marcus Meissner 826bff384d ole32: Fixed bad sizeof()s in composite moniker (Coverity). 2013-06-28 11:40:14 +02:00
Jacek Caban a2aefe917e ole32/tests: Added tests for external connections stored in ROT. 2013-06-27 15:31:33 +02:00
Jacek Caban 070b22ebb4 ole32: Don't call AddConnection for weak references. 2013-06-27 15:31:33 +02:00
Marcus Meissner 5ef6f99108 ole32: LeaveCriticalSection in one exit case (Coverity). 2013-06-25 12:38:03 +02:00
Aric Stewart df6115aea6 ole32: Do not fail if partial blocks are read. 2013-06-17 19:30:49 +02:00
Aric Stewart b69d67f146 ole32: Not all uses of StorageImpl_ReadBigBlock fail if no bytes are read. 2013-06-12 15:51:07 +02:00
Dmitry Timoshkov b02951dfa7 ole32/tests: Make sure that key "Software\\Classes" exists under HKEY_CURRENT_USER. 2013-06-11 11:29:45 +02:00
Dmitry Timoshkov ac13aa28ad ole32/tests: Test remaining class, object and server reference counts at server exit. 2013-06-11 11:29:29 +02:00
Dmitry Timoshkov 2daa5367f8 ole32/tests: Add a test for local server interaction using an in-process handler. 2013-06-10 12:38:31 +02:00
Dmitry Timoshkov 289437dc4d ole32/tests: Remove redundant code. 2013-06-10 12:38:31 +02:00
Dmitry Timoshkov eeca784b70 ole32: Add a basic OLE client/server test suite. 2013-06-07 17:40:41 +02:00
Alistair Leslie-Hughes f0806fd68c ole32/tests: Check function pointer. 2013-06-03 22:55:27 +02:00
Alistair Leslie-Hughes 0f4c77d877 ole32/tests: Fix crash under NT. 2013-06-03 22:55:21 +02:00
Akihiro Sagawa 884ead472b ole32: Use LMEM_MOVEABLE when reallocating memory. 2013-06-03 11:29:41 +02:00
Dmitry Timoshkov 748c3ea9c9 ole32: Add a couple more defaulthandler tests. 2013-05-30 20:19:32 +02:00
Alistair Leslie-Hughes 97ac6943c3 ole32: Fix test under NT. 2013-05-29 11:26:13 +02:00
Jacek Caban a30cc75fe0 ole32: Added IExternalConnection support. 2013-05-23 20:18:16 +02:00
Jacek Caban 889112a29a ole32: Use a separated object to expose local servers instead of marshaling them in CoRegisterClassObject. 2013-05-23 20:03:17 +02:00
Alexandre Julliard aaa680bfda ole32/tests: Fix array indices in a trace. 2013-05-21 14:57:53 +02:00
Alexandre Julliard 5e95368e0a ole32: Don't bother to unregister classes at process exit. 2013-05-14 11:33:27 +02:00
Jacek Caban b4cc5a2114 ole32: Error handling clean up in local_server_thread. 2013-05-13 20:52:07 +02:00
Jacek Caban fdc4d40d18 ole32: Added more default handler QueryInterface tests. 2013-05-10 17:53:05 +02:00
Dmitry Timoshkov 79ef449e32 ole32: Add a semi-stub for CLSIDFromProgIDEx. 2013-05-07 11:18:52 +02:00
Nikolay Sivov 448a44ca5f ole32: Simplify IEnumSTATSTG initialization. 2013-04-19 16:16:18 +02:00
Nikolay Sivov 3b9568802a ole32: Remove some casts that are not needed. 2013-04-19 16:16:17 +02:00
Nikolay Sivov 5132f60298 ole32: Store SMWR storage instance role separately. 2013-04-19 16:16:17 +02:00
Nikolay Sivov 1b4f3ca6f7 ole32: Merge release code to Release method. 2013-04-18 17:00:53 +02:00
Nikolay Sivov a06db6cce5 ole32: Stub for IDirectWriterLock. 2013-04-18 17:00:17 +02:00
Nikolay Sivov c29f3dff8c ole32: Accept STGM_DIRECT_SWMR mode. 2013-04-18 17:00:12 +02:00
Nikolay Sivov a90c1efe51 ole32: Move share/access modes to static arrays. 2013-04-18 16:59:56 +02:00
Nikolay Sivov 611cf6bb0d ole32: Fix possible return of freed pointer (Coverity). 2013-04-01 12:32:37 +02:00
Dmitry Timoshkov 41d3085522 ole32: Fix an apartment reference count leak on error path. 2013-03-28 17:36:53 +01: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
Piotr Caban 0cf2b77aed ole32: Added more OleCreateDefaultHandler tests. 2013-02-27 19:23:47 +01:00
Andrew Talbot faaeeea937 ole32: Avoid signed-unsigned integer comparisons. 2013-02-22 10:20:57 +01:00
Marcus Meissner 2dbb23c810 ole32: Free *ppszProgID on error path (Coverity). 2013-02-18 10:32:22 +01:00
Roman Dadkov 665717ae75 ole32/tests: Add test for OleRun. 2013-02-15 11:55:37 +01:00
Roman Dadkov 8a4557ac8b ole32/tests: Add test for SetClientSite. 2013-02-13 20:39:42 +01:00
Alexander Morozov 5857895684 ole32: Avoid a deadlock when a being loaded DLL calls CoRegisterClassObject from its DLL_PROCESS_ATTACH handler. 2013-02-08 12:07:48 +01:00
Alexandre Julliard e089295f75 ole32: Fix wrap-around bug in tick count comparison. 2013-01-24 15:15:25 +01:00
Eric Pouech d1ccbceb4d Various background processes must be launched detached from current console (if any). 2013-01-16 14:02:55 +01:00
Francois Gouget f963f93964 Assorted spelling fixes. 2013-01-07 11:10:40 +01:00
Andrew Talbot fa96beb5c4 ole32: Indentation fix. 2012-12-19 12:54:41 +01:00
Jacek Caban 4eb769451e ole32: Added IMoniker::BindToStorage proxy/stub implementation. 2012-12-13 18:39:02 +01:00
Alexandre Julliard a283b986c7 ole32: Limit the number of messages processed at once in CoWaitForMultipleObjects. 2012-12-12 14:06:46 +01:00
Qian Hong 9b90ea557b ole32: Fix OleDraw() with NULL pUnk. 2012-12-06 22:52:15 +01:00
Frédéric Delanoy 8ddb00b22b ole32: Fix some leaks (coverity). 2012-11-27 19:45:37 +01:00
Frédéric Delanoy 02da0411e1 ole32: Add helper for string table memory freeing. 2012-11-27 19:45:37 +01:00