Commit Graph

189 Commits

Author SHA1 Message Date
Zebediah Figura 50a7b239bd widl: Generate correct size and alignment for all types.
Using type_memsize_and_alignment() directly instead of reimplementing it.

Also fix the generated tests in oleaut32 to reflect correct sizes for 64-bit
typelibs.

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-05 10:07:10 +02:00
Zebediah Figura 8c968f774c widl: Don't remove the FDUAL flag from non-dispatchable interfaces.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-29 17:13:05 +02:00
Zebediah Figura 413821f8b1 widl: Properly implement syntax 2 dispinterfaces.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-29 17:13:05 +02:00
Huw Davies dd012af92a oleaut32: Fix vtable offset for a SYS_WIN32 typelib loaded on WIN64.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-22 10:27:57 +01:00
Huw Davies 138f75f19f oleaut32/tests: Remove some no longer needed test work-arounds.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-22 10:27:55 +01:00
Piotr Caban 61c18632b8 oleaut32: Fix automatic value getting in ITypeInfo::Invoke.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-07 21:24:45 +01:00
Donna Whisnant c4ac2d285d oleaut32: Fix DispCallFunc() stdcall test to be ABI not x64 specific.
The tests checking callee stack cleaning for stdcall vs. cdecl should
be a function of the calling ABI of the platform, not whether it is
64-bit or not.  This fixes the check for platforms like ARM that may
be 32-bit but that do not use the stdcall convention of callee stack
cleaning.

Signed-off-by: Donna Whisnant <dewhisna@dewtronics.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-06 12:15:28 +01:00
Nikolay Sivov 19b944d49c oleaut32/tests: Basic test for invalid arguments in LoadTypeLib/LoadTypeLibEx.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-07 11:24:48 +02:00
Daniel Lehman 7021fd61c6 oleaut32/tests: Fix type descriptions leak (valgrind).
Signed-off-by: Daniel Lehman <dlehman25@gmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-11-23 22:36:40 +01:00
Nikolay Sivov 37745b093d oleaut32: Fix AddFuncDesc() to ignore scodes array length when NULL array pointer is passed.
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-08-26 22:42:49 +09:00
Nikolay Sivov 5c4cbc9d60 oleaut32: Support querying for ITypeComp from ITypeInfo.
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-08-26 22:42:39 +09:00
Michael Stefaniuc 9d74567ad3 oleaut32/tests: Use todo_wine_if() instead of ifdef constructs.
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-05 09:13:44 -05:00
Nikolay Sivov 1c3127c68d oleaut32/tests: Fix a test crash on some XP SP1 VM.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-23 22:58:28 +09:00
Sebastian Lackner fd8ecd0cfa oleaut32/tests: Avoid misleading assignment in refcounting tests.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-16 12:09:38 +09:00
Piotr Caban c2090c8845 oleaut32: Add ICreateTypeLib2::SetCustData tests.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-28 21:27:27 +09:00
Nikolay Sivov 12ce3c58ed oleaut32/tests: Fix some test failures.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-27 12:37:00 +09:00
Piotr Caban 2142bde3e2 oleaut32: Add support for best version argument in LoadRegTypeLib.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-26 18:17:37 +09:00
Piotr Caban dcd9b8ea0e oleaut32: Fix best version handling in QueryPathOfRegTypeLib when type library redirection is used.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-26 18:17:26 +09:00
Jacek Caban 17baf1e769 oleaut32: Added more Invoke tests.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-12 16:04:39 +09:00
Dmitry Timoshkov fa567adfb7 oleaut32/tests: Add a bunch of new tests for typelib generation.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-05 20:22:36 +09:00
Dmitry Timoshkov 58b0788a2d widl: Attributes of the alias are supposed to replace attributes of a tag in the typelib.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-05 18:32:01 +09:00
Dmitry Timoshkov e1760f8422 oleaut32/tests: Add more tests for typelib data.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
2015-10-06 17:20:59 +09:00
Dmitry Timoshkov 5081ce3e37 oleaut32/tests: Add a check for referenced type of VT_USERDEFINED parameters.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
2015-10-06 17:20:58 +09:00
Dmitry Timoshkov 2ce0efd3b1 oleaut32/tests: Replace magic values by symbolic names in the typelib data.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
2015-10-06 14:28:52 +09:00
Dmitry Timoshkov 016985f67d oleaut32/tests: Update the typelib test generator to match existing data.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
2015-10-06 14:28:41 +09:00
Dmitry Timoshkov ed0c9ba694 oleaut32/tests: Fix compilation of typelib test with PSDK tools.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
2015-10-06 14:28:36 +09:00
André Hentschel 4b8df74447 kernel32/tests: Add more ARM and ARM64 arch strings. 2015-08-12 22:52:26 +09:00
Nikolay Sivov 4b1ff0078b oleaut32/tests: Fix stub buffer leak (Valgrind). 2015-06-22 19:16:48 +09:00
Nikolay Sivov 613a65982f oleaut32/tests: Some tests for IsMatchingType(). 2015-03-10 15:09:00 +09:00
Guillaume Charifi 9e4590ff67 oleaut32: Implement TLB dependencies lookup in resources. 2014-11-04 23:03:30 +09:00
Guillaume Charifi 16000c6129 oleaut32/tests: Add test for TLB dependencies lookup in resources. 2014-08-26 22:18:44 +02:00
Akihiro Sagawa 75c0204871 oleaut32: Use the alternate interface key if not present on current view. 2014-07-15 15:35:31 +02:00
Akihiro Sagawa 8b0b6f90af oleaut32/tests: Add more test cases that proxy stub interface is on one side. 2014-07-15 15:35:23 +02:00
Akihiro Sagawa eb95ad074f oleaut32/tests: Add registry view flag to myRegDeleteTreeW like RegDeleteKeyEx. 2014-07-15 15:35:04 +02:00
Akihiro Sagawa 86b7fc3829 oleaut32: Delete opposite side keys on UnRegisterTypeLib. 2014-06-11 19:15:14 +02:00
Akihiro Sagawa 3f65a86959 oleaut32/tests: Test UnRegisterTypeLib surely deletes registry keys. 2014-06-11 19:15:13 +02:00
Akihiro Sagawa 8006d57607 oleaut32/tests: Use a boolean constant for BOOL argument. 2014-06-11 19:15:12 +02:00
Nikolay Sivov 05c970c484 oleaut32/tests: Some tests for propputref invocation. 2014-03-06 12:01:26 +01:00
Francois Gouget 2e0d15b007 oleaut32/tests: Skip the test_stub() tests if we have insufficient privileges. 2014-02-25 14:20:23 -06:00
Nikolay Sivov 88fc916442 ntdll: Use case-insensitive matching for typelib flags.
Spotted by Austin English.
2014-02-24 09:12:03 -06:00
Marcus Meissner 5690127b2e oleaut32: Incorrect sizeof() to MultiByteToWideChar (Coverity). 2014-02-10 10:39:49 +01:00
Nikolay Sivov 60252ea65b oleaut32: Fix RecordCopy()/RecordClear() behavior. 2014-02-04 11:10:48 +01:00
Nikolay Sivov cbf55d8251 widl: Uuid attribute is allowed for 'struct'. 2014-01-28 10:52:09 +01:00
Nikolay Sivov c46debeeeb widl: Fix pointer size for SYS_WIN64 typelibs.
The fact that test data was wrong was hidden by broken widl typelib,
and same test typelib was used on windows so we never get proper test
results. Standard IUnknown/IDispatch that live in system stdole2.tlb
are also tested now.
2014-01-27 14:13:54 +01:00
Andrew Eikum 57895e5a8c oleaut32: Improve ITypeLib::FindName. 2014-01-27 14:13:38 +01:00
Frédéric Delanoy dfe6a9b200 oleaut32/tests: Constify some character strings. 2013-12-27 14:31:53 +01:00
Nikolay Sivov 7be2251cd6 oleaut32: Always set LIBFLAG_FHASDISKIMAGE when loading from file. 2013-11-13 18:30:39 +01:00
André Hentschel 611ad497e7 oleaut32/tests: Fix typelib tests compilation with __WINESRC__ defined. 2013-10-28 10:37:58 +01:00
Francois Gouget 5098cd6246 oleaut32/tests: Make the uk_*() methods static. 2013-10-21 10:43:22 +02:00
Frédéric Delanoy 3f91834ffb oleaut32/tests: Use BOOL type where appropriate. 2013-10-18 12:34:39 +02:00