Eric Pouech
7f0c59f360
devenum/tests: Build without -DWINE_NO_LONG_TYPES.
...
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-03 21:29:47 +01:00
Zebediah Figura
6506533f71
devenum/tests: Remove workarounds from test_moniker_isequal().
...
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-03 21:29:44 +01:00
Zebediah Figura
95aa1bab76
devenum: Build without -DWINE_NO_LONG_TYPES.
...
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-02 10:55:13 +01:00
Alexandre Julliard
f0cd33c69e
include: Add support for defining Win32 types as 'long' where possible.
...
Add -DWINE_NO_LONG_TYPES to modules that still have compilation
warnings with long types.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-01-27 20:38:22 +01:00
Alexandre Julliard
088a787a2c
makefiles: Make -mno-cygwin the default.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-09-20 22:45:48 +02:00
Zebediah Figura
65e6165ce8
devenum: Always return S_FALSE from DllCanUnloadNow().
...
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-08-26 09:34:41 +02:00
Alexandre Julliard
1331a8ea0f
winecrt0: Determine the registration module handle directly in __wine_register_resources().
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-30 22:59:50 +02:00
Jacek Caban
f59b482c2c
devenum: Use nameless structs and unions.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-03-23 09:31:41 +01:00
Jacek Caban
b39b9eea39
include: Don't default to WINE_NO_NAMELESS_EXTENSION for Wine build.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-03-22 21:48:38 +01:00
Michael Stefaniuc
c5c4e83392
devenum: Avoid the comma operator.
...
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-03-15 10:51:25 +01:00
Zebediah Figura
72782c0493
devenum: Avoid initializing nameless unions in designated initializers.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=50423
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-12-29 21:08:59 +01:00
Zebediah Figura
7bae2aaf95
devenum: Correct the size of "name" in register_avicap_devices().
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-08-28 19:29:16 +02:00
Zebediah Figura
58c3b5c100
devenum: Call DMOGetTypes() until less types are returned than were allocated.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-07-13 21:22:13 +02:00
Zebediah Figura
2f2ac79242
devenum: Return filter data for DMO monikers.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-05-15 23:21:55 +02:00
Zebediah Figura
b6f2e9b130
devenum: Use wide string literals.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-05-14 11:40:25 +02:00
Zebediah Figura
90a99806ac
devenum: Map CLSID_LegacyAmFilterCategory to DMOCATEGORY_AUDIO_DECODER and DMOCATEGORY_VIDEO_DECODER.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-05-14 11:40:25 +02:00
Zebediah Figura
af68dafc63
devenum: Use calloc() in enum_moniker_create().
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-05-14 11:40:25 +02:00
Rémi Bernon
01dd935d1e
devenum: Use free for memory allocated with wcsdup.
...
The memory is otherwise released to the process heap, although msvcrt
allocated it from its internal heap.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-29 19:51:22 +02:00
Zebediah Figura
6bdb22108c
devenum: Implement IMoniker::BindToObject() for DMO devices.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-17 11:50:35 +02:00
Zebediah Figura
7133ed2569
devenum: Access the IPropertyBag interface directly in IMoniker::BindToObject().
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-17 11:50:33 +02:00
Zebediah Figura
6cfd0924aa
devenum: Ignore the "left" parameter to IMoniker::BindToObject().
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-17 11:50:31 +02:00
Zebediah Figura
3ed689c0f2
devenum: Get rid of the union in struct moniker.
...
To avoid an invalid free in moniker_Release().
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-15 11:38:23 +02:00
Zebediah Figura
8edbd2d3e8
devenum: Remove some unnecessary includes.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-15 11:38:21 +02:00
Zebediah Figura
7c16aacc5f
devenum: Return E_INVALIDARG from IPropertyBag::Write() for invalid variant types.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-15 11:38:19 +02:00
Zebediah Figura
ab355d6ea3
devenum/tests: Avoid running test_devenum() twice.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-15 11:38:11 +02:00
Zebediah Figura
e3cf3823f8
devenum: Merge the property bag object into the moniker object.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-14 11:21:02 +02:00
Zebediah Figura
ccefc1f469
devenum: Don't support VT_UI4 in IPropertyBag methods.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-14 11:20:59 +02:00
Zebediah Figura
e3df3ca839
devenum: Don't support VT_LPWSTR in IPropertyBag methods.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-14 11:20:56 +02:00
Zebediah Figura
27f13b2bb4
devenum/tests: Add more tests for IPropertyBag methods.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-14 11:20:53 +02:00
Zebediah Figura
208bc5d282
devenum/tests: Use wide character string literals.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-14 11:20:48 +02:00
Zebediah Figura
8cabd4785f
devenum: Pass moniker fields to moniker_create().
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-13 11:51:47 +02:00
Zebediah Figura
4994ba2123
devenum: Use calloc() in moniker_create().
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-13 11:51:44 +02:00
Zebediah Figura
0fc7e99a15
devenum: Get rid of the MediaCatMoniker typedef.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-13 11:51:40 +02:00
Zebediah Figura
6a95f68396
devenum: Get rid of the DEVENUM_ prefix on all method names.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-13 11:51:35 +02:00
Zebediah Figura
cbfd33300a
devenum: Don't bother creating the category key for codecs if there are no codecs to register.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-13 11:51:29 +02:00
Zebediah Figura
73a5417a02
devenum: Remove no longer necessary call to CoInitialize().
...
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-02-11 08:44:07 +01:00
Alexandre Julliard
280e51e114
devenum/tests: Get rid of strchrW() and strncmpW().
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-01-26 10:59:43 +01:00
Nikolay Sivov
57c6b9fd41
devenum: Don't free uninitialized pointer value.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-07-03 10:56:18 +02:00
Alexandre Julliard
70d6d09f5d
devenum: Build with msvcrt.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-31 08:49:22 +02:00
Damjan Jovanovic
779633acde
devenum: Iterate over all avicap devices instead of giving up at the first failure.
...
Some /dev/video* device nodes aren't capture devices, so
capGetDriverDescriptionW() will fail for them, but there
could still be valid ones later on. Iterate over all 10
instead of giving up at the first failure.
Signed-off-by: Damjan Jovanovic <damjan.jov@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-04-26 16:36:36 +02:00
Zebediah Figura
7c743a492d
devenum: Fix device and friendly name for video capture devices.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-04-22 11:18:54 +02:00
Zebediah Figura
e0da0b777a
devenum: Return S_FALSE from CreateClassEnumerator() if no devices exist.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=46316
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-04-09 15:46:03 +02:00
Detlef Riekenberg
9ceb9720e8
devenum/tests: Accept ERROR_KEY_DOES_NOT_EXIST from IPropertyBag_Read.
...
Signed-off-by: Detlef Riekenberg <wine.dev@web.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-03-21 19:33:02 +01:00
Sven Baars
e6b9a83bb4
devenum: Don't pass a name argument to IEnumDMO_Next.
...
Signed-off-by: Sven Baars <sven.wine@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-02-25 12:33:20 +01:00
Zebediah Figura
3399e9bbf2
devenum/tests: Fix some more memory leaks (Valgrind).
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-12-18 10:23:56 +01:00
Zebediah Figura
532c986ac5
devenum/tests: Fix some memory leaks (Valgrind).
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-12-13 10:11:17 +01:00
Zebediah Figura
cea7615038
devenum: Zero-initialize REGFILTERPINS struct.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=45923
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-10-04 06:54:07 -05:00
Marcus Meissner
5ea87a883e
devenum: Fixed size to capGetDriverDescriptionW (Coverity).
...
CID 1439780
Signed-off-by: Marcus Meissner <marcus@jet.franken.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-30 12:13:31 +02:00
Zebediah Figura
9316d8ae86
devenum: Only scan for devices for the requested filter category.
...
This matches native behaviour, and greatly reduces the overhead of
IFilterMapper2_EnumMatchingFilters().
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-24 10:25:06 +02:00
Zebediah Figura
ec16a92b1d
devenum: Register AVI capture devices as codec devices.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-24 10:25:02 +02:00