Commit Graph

169 Commits

Author SHA1 Message Date
Nikolay Sivov 5b7c9ecd09 ole32: Implement IComThreadingInfo::GetCurrentLogicalThreadId().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-11 20:22:27 +09:00
Nikolay Sivov 1105acd26a ole32: Implement CoGetCurrentLogicalThreadId().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-11 20:22:24 +09:00
Nikolay Sivov 22ef1c7e2a ole32/tests: Fixed CoGetPSClsid() test failures when running on limited account.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-07 13:20:34 +09:00
Nikolay Sivov 2a1e856bd9 ole32/tests: Don't trace last error when error code is returned directly.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-07 13:20:32 +09:00
Nikolay Sivov 485a412b18 ole32/tests: Fix tests failing on limited account.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-07 13:20:30 +09:00
Nikolay Sivov cef4c7dc69 ole32: Improve CoRegisterMallocSpy/CoRevokeMallocSpy state and parameter validation.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-04 18:43:04 +09:00
Nikolay Sivov 110665a3d8 ole32: Don't call spy on IMalloc::Free(NULL).
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-04 18:43:04 +09:00
Michael Müller 381ce2956b ole32: Implement semi-stub for CoGetApartmentType.
Signed-off-by: Michael Müller <michael@fds-team.de>
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-03-03 12:59:02 +09:00
Paul Gofman b4b0c138fe ole32: Fix behaviour of OLE init/uninit.
Signed-off-by: Paul Gofman <gofmanp@gmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-15 23:51:02 +09:00
Nikolay Sivov 8fe18a16f7 ole32: Properly implement OleRegGetUserType().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-05 17:52:49 +01:00
Nikolay Sivov 7ad896d541 ole32/tests: Some tests for OleRegGetUserType().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-24 13:44:03 +01:00
Nikolay Sivov 12d73316e4 ole32: Fix parameter validation for CoGetMalloc().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-23 16:35:19 +01:00
Nikolay Sivov f797f63d24 ole32/tests: Some tests for CoGetMalloc().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-04 21:56:18 +09:00
Jacek Caban dedcd30cb8 ole32: Pass requested interface IID to CreateInstance in CoCreateInstanceEx.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-22 16:47:15 +09:00
Jacek Caban 0a92038b38 ole32: Added tests for IPSFactoryBuffer::CreateStub calls. 2015-08-29 14:28:23 +09:00
Piotr Caban 9fd75e8650 ole32/tests: Fix new failures in CoWaitForMultipleHandles tests. 2015-07-31 12:07:41 +02:00
Piotr Caban fbf7046ae8 ole32: Don't pump all messages in CoWaitForMultipleHandles in threads without apartment window. 2015-07-30 23:50:43 +02:00
Sebastian Lackner fdd83248b6 ole32/tests: Add additional tests for CoWaitForMultipleHandles and WM_QUIT. 2015-05-22 14:09:19 +09:00
Nikolay Sivov bb37d75074 ole32/tests: Fix a test failure on Win8. 2015-05-01 21:12:42 +09:00
Nikolay Sivov 3d33d8a9c4 ole32/tests: Fix test failures on some VMs with limited user permissions. 2015-05-01 21:12:23 +09:00
Michael Stefaniuc c2da97a5e5 ole32/tests: Actually test some return codes (PVS-Studio). 2015-01-19 14:20:32 +01:00
Sebastian Lackner f6f55058e4 ole32: Don't process window events when APC calls are queued. 2014-11-21 20:10:04 +09:00
Sebastian Lackner bbf6891030 ole32: Verify arguments for CoWaitForMultipleHandles, always initialize index to zero. 2014-11-21 20:10:01 +09:00
Sebastian Lackner f7f2167fe8 ole32/tests: Add tests for CoWaitForMultipleHandles. 2014-11-21 20:09:58 +09:00
Nikolay Sivov 2487afa5d3 ole32/tests: Use proper wrappers for IObjContext methods. 2014-11-19 23:36:34 +09:00
Akihiro Sagawa efdaa4a17a ole32: Search 32-bit registry in 64-bit CoGetPSClsid and vice versa. 2014-07-15 15:34:40 +02:00
Akihiro Sagawa fae8d9db5f ole32/tests: Add CoGetPSClsid WOW64 registry tests. 2014-07-15 15:33:25 +02:00
Andrew Eikum c2089cbd0d ole32: Respect TreatAs in CoCreateInstance. 2014-06-16 09:28:38 +02:00
Andrew Eikum 42f5118570 ole32: Implement CoTreatAsClass for classes without AutoTreatAs. 2014-06-16 09:28:29 +02:00
Guillaume Charifi 216b24527d ole32: CoCreateGuid returns E_INVALIDARG on null-GUID. 2014-06-12 18:23:33 +02:00
Nikolay Sivov ffcced0f39 ole32/tests: Handle context generation failure better. 2014-02-20 11:20:00 +01:00
Nikolay Sivov cdd932a060 ole32: Separate IIDFromString() for CLSIDFromString(), fix corner cases and return values. 2014-02-10 10:42:57 +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
Frédéric Delanoy 43d05cc59e ole32/tests: Constify some character strings. 2013-12-27 14:31:53 +01:00
Nikolay Sivov d0bf7f4eaf ole32: Added activation context support for OleRegGetMiscStatus(). 2013-11-11 20:56:20 +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
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
Nikolay Sivov 026b711483 ole32/tests: Compile with -D__WINESRC__. 2013-10-16 11:41:18 +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 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
Dmitry Timoshkov b02951dfa7 ole32/tests: Make sure that key "Software\\Classes" exists under HKEY_CURRENT_USER. 2013-06-11 11:29:45 +02:00
Alistair Leslie-Hughes f0806fd68c ole32/tests: Check function pointer. 2013-06-03 22:55:27 +02:00
Francois Gouget f963f93964 Assorted spelling fixes. 2013-01-07 11:10:40 +01:00
Hans Leidekker 7895eae15b ole32: Convert the remaining RegCreateKey and RegOpenKey calls to the wrappers. 2012-11-26 16:59:22 +01:00
Hans Leidekker a82c49028d ole32: Use wrappers around NT functions to access the registry in CoGetPSClsid. 2012-11-26 16:59:17 +01:00
Hans Leidekker 479b7bcf60 ole32/tests: Add a test to show that CoGetPSClsid is not affected by an override of HKEY_CLASSES_ROOT. 2012-11-22 17:35:30 +01:00
Michael Stefaniuc 43ae84636a ole32: Avoid TRUE:FALSE conditional expressions. 2012-08-13 11:50:42 +02:00
Michael Stefaniuc 3673f6b7c4 ole32/tests: COM cleanup in compobj.c. 2011-08-03 14:15:48 +02:00
David Hedberg ea14a6b2e7 oleaut32: Fix CLSIDToString behaviour when passed an invalid CLSID-string.
In some cases, Excel 2007 apparently relies on CLSIDToString properly
parsing an "invalid" CLSID string where extra bytes are appended.
2011-04-28 18:17:18 +02:00
Austin English 5ca437e758 ole32/tests: Remove unused assignment (LLVM/Clang). 2011-02-07 10:10:16 -06:00
Alexandre Julliard bc8e70c089 ole32/tests: Make some variables static. 2010-10-01 13:37:14 +02:00
Rob Shearman 9943facb26 ole32: Fix error code returned by CoGetClassObject/CoCreateInstance in CLSCTX_REMOTE_SERVER case. 2009-11-24 10:52:07 +01:00
Rob Shearman 8554ce5b18 ole32: Add tests for errors returned by CoCreateInstance for classes that are not registered. 2009-11-24 10:52:02 +01:00
Rob Shearman d963e97f32 ole32: Objects registered as local servers don't need to support IClassFactory. 2009-11-20 16:38:56 +01:00
Rob Shearman 932544d34c ole32: OleInitialize should return S_OK if it is called for the first time on a thread independently of CoInitializeEx. 2009-11-17 15:14:53 +01:00
Nikolay Sivov 5b723235d8 ole32: Check source pointer in StringFromGUID2. 2009-10-06 11:57:20 +02:00
Alexandre Julliard a104766b07 ole32/tests: Don't release the token object since it doesn't have a proper ref count. 2009-08-18 13:00:37 +02:00
Alexandre Julliard 9b2e414e91 ole32/tests: Avoid infinite waits in tests. 2009-08-18 12:48:57 +02:00
Alexandre Julliard d617642999 ole32/tests: Avoid depending on the heap allocation order for the CoGetObjectContext test. 2009-07-22 14:42:50 +02:00
Hans Leidekker 6986d97f18 ole32: Use existing MTA in CoGetContextToken and CoGetObjectContext. 2009-07-03 13:06:17 +02:00
Hans Leidekker 82bcafe8eb ole32: Add tests for CoGetContextToken. 2009-06-23 15:52:58 +02:00
Huw Davies 628a8743d2 ole32/tests: Fix tests on systems without IE installed. 2009-05-25 11:21:12 +02:00
Hans Leidekker bd4975acb0 ole32: Use existing MTA in CoGetClassObject and CoCreateInstance.
Custom actions in the CS3 installer depend on this.
2009-05-05 14:14:20 +02:00
Hans Leidekker d2820c0684 ole32: Add tests to show that COM needs to be initialized only once for multi-threaded apartments. 2009-05-05 14:14:10 +02:00
Aric Stewart 46da8ef18b ole32: CoGetTreatAsClass should return S_FALSE if it cannot even find the key for the requested CLSID. 2009-04-24 11:51:35 +02:00
Rob Shearman 0025bdf607 ole32: Fix a missing CoUninitialize in test_CoFreeUnusedLibraries. 2009-01-28 14:15:48 +01:00
Michael Stefaniuc bdbfac5996 ole32/tests: Remove superfluous pointer casts. 2009-01-20 12:34:31 +01:00
Andrey Turkin a06f568a2a ole32: Add CoGetCallContext and CoSwitchCallContext implementations. 2009-01-19 14:44:32 +01:00
Andrey Turkin 37d27c38ce ole32: Add IContextCallback interface to context object. 2009-01-15 12:42:12 +01:00
Andrey Turkin 8ff76d24f6 ole32/tests: Add test for IContextCallback. 2009-01-14 14:16:21 +01:00
Austin English 753affe48d ole32: Add tests for CoInitializeEx. 2009-01-13 16:17:02 +01:00
Alexandre Julliard 68bd54b558 ole32/tests: Fix a pointer casting warning on 64-bit. 2009-01-03 20:14:11 +01:00
Ge van Geldorp 69c5fca81a ole32/tests: Work around broken Windows urlmon.dll. 2009-01-03 14:55:32 +01:00
Francois Gouget 3b140ccb0e Assorted spelling fixes. 2008-11-17 16:04:39 +01:00
Alexandre Julliard 48d41dbc37 ole32/tests: Use a CLSID that is more likely to exist on old Windows versions. 2008-11-13 21:45:25 +01:00
James Hawkins e28098aee5 ole32: Fix two failing tests in win9x. 2008-09-03 14:21:43 +02:00
Paul Vriens dae64e67fc ole32/tests: Prevent a crash. 2008-05-30 11:50:04 +02:00
Francois Gouget 315bf2fa45 ole32/tests: Add a trailing '\n' to ok() calls. 2008-05-22 11:42:54 +02:00
Michael Karcher 3d5ea20190 ole32/tests: Test StringFromGUID2. 2008-05-20 15:45:43 +02:00
Michael Karcher a2880cc61d ole32/tests: Do not call Release if CoCreateInstance failed. 2008-05-20 15:43:54 +02:00
Rob Shearman 2e2383d5ca ole32: Add a missing IStream_Release to test_CoMarshalInterThreadInterfaceInStream. 2007-11-12 11:45:19 +01:00
Rob Shearman 1d0993341c ole32: Add tests for CoGetObjectContext. 2007-11-02 12:18:42 +01:00
Rob Shearman 71ada5c654 ole32: Add a test for the retrieved local class object in another thread being a proxy. 2007-05-08 13:24:07 +02:00
Rob Shearman 7d7f9a59d0 ole32: Fix CoRevokeClassObject to return RPC_E_WRONG_THREAD if it was called from a different apartment than the one that called CoRegisterClassObject. 2007-05-08 13:23:51 +02:00
Rob Shearman 51f85a765b ole32: COM_GetRegisteredClassObject should only retrieve objects that were registered in the current apartment. 2007-05-08 13:23:30 +02:00
Rob Shearman e93c82e643 ole32: Add tests for in-process registered class objects not being visible from different apartments. 2007-05-08 13:23:01 +02:00
Rob Shearman 4cbca9ac3a ole32: Add test for registered class becoming invalid when apartment is destroyed. 2007-05-08 13:22:26 +02:00
Rob Shearman ab7f796fcb ole32: Keep a list of the loaded dlls for each apartment.
Use it to make CoFreeUnusedLibraries per-apartment.
2007-04-04 21:28:36 +02:00
Rob Shearman 1d8879bccc ole32: Add a test that shows CoFreeUnusedLibraries only frees unused libraries from the current apartment. 2007-04-04 21:27:12 +02:00
Rob Shearman 7ba4b81675 ole32: Add some tests for the flags input to CoRegisterClassObject. 2007-03-09 21:16:41 +01:00
Rob Shearman 7a6a63f8fc ole32: Fix a failing CoUnmarshalInterface test on Windows. 2007-03-06 22:17:45 +01:00
Paul Vriens e89cac747c ole32/tests: Cast-qual warning fixes. 2007-01-24 11:59:11 +01:00
Rob Shearman 49fc8ac742 ole32: Add tests for passing invalid arguments to CoUnmarshalInterface. 2007-01-10 12:21:53 +01:00