Commit Graph

69 Commits

Author SHA1 Message Date
Zebediah Figura 2d4e21d45e msdmo: Also handle ERROR_SUCCESS with nonzero size from RegQueryValueExW().
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=49659
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-01 11:48:55 +02:00
Zebediah Figura 78d2a0919e msdmo: Avoid leaking key handles in DMOGetTypes().
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 37b926b8fe msdmo: Return the number of media types retrieved from DMOGetTypes().
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 03a2191449 msdmo: Return S_OK from DMOGetTypes() even if the buffer is too short.
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 caa41d4917 msdmo: Use a dynamically allocated buffer in IEnumDMO::Next().
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-07-10 22:55:12 +02:00
Zebediah Figura aa2406ecea msdmo: Factor out any_types_match().
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-07-10 22:55:12 +02:00
Zebediah Figura 3a708d4722 msdmo: Use wide character string literals.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-07-10 22:55:12 +02:00
Zebediah Figura 42a8f382ed msdmo: Avoid a redundant string -> GUID conversion.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-07-10 22:55:12 +02:00
Zebediah Figura fb64420673 msdmo: Remove dead code associated with an older registry format.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-07-10 22:55:12 +02:00
Jacek Caban 8d0b0b7b0c msdmo: Use proper buffer types in IEnumDMO::Next.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-05-07 20:13:23 +02:00
Alexandre Julliard b5d2b70dff msdmo: Build with msvcrt.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-06-12 11:44:26 +02:00
Sven Baars 61e0ffcd73 msdmo: Allow for names to be NULL in 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
Michael Stefaniuc a89880615e msdmo: Use the ARRAY_SIZE() macro.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-14 10:16:00 +02:00
Zebediah Figura 4e49d7ba42 msdmo: DMORegister() returns E_FAIL if unable to access the registry.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-28 14:06:13 +02:00
Zebediah Figura 351c8621b7 msdmo: Only return valid GUIDs in IEnumDMO_Next().
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-09 09:45:22 +02:00
Zebediah Figura 386c27084a msdmo: Make formatting consistent with the rest of the file.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-09 09:33:43 +02:00
Zebediah Figura e2e3f70ed7 msdmo: Fix pointer checking in IEnumDMO_Next().
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-09 09:33:41 +02:00
Zebediah Figura 216e1f25a4 msdmo: Return a valid enumerator even if the category doesn't exist.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-09 09:33:35 +02:00
Zebediah Figura cf9c6fc0e3 msdmo: Link to dmoguids.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-08 10:45:09 +02:00
Nikolay Sivov 49958f83f1 msdmo: Reg* API does not use HRESULT return codes. 2015-05-04 20:11:03 +09:00
Nikolay Sivov 70297c424a msdmo: Add more tracing. 2015-04-24 21:19:31 +09:00
Nikolay Sivov 55620f097c msdmo: Added a helper to duplicate partial media type arrays. 2015-04-24 21:19:27 +09:00
Nikolay Sivov 0b7b8e3dc3 msdmo: Store requested category GUID instead of a pointer to it. 2015-04-24 21:19:11 +09:00
Nikolay Sivov 3f7c47118a msdmo: Next() method should use CoTaskMemAlloc() for returned names. 2015-04-23 15:49:14 +09:00
Nikolay Sivov 65bf359d6f msdmo: Remove a helper only used once. 2015-04-23 15:49:11 +09:00
Nikolay Sivov 6238adc817 msdmo: Fix DMOGetName() error handling and error values. 2015-04-22 23:25:57 +09:00
Nikolay Sivov 89837cb04e msdmo: Fix DMOUnregister() when running on clean wineprefix. 2014-12-31 11:39:00 +01:00
Nikolay Sivov af6712599a msdmo: Use specified category in DMOUnregister(). 2014-12-30 15:55:06 +01:00
Nikolay Sivov 6eab498160 msdmo: Fix RegOpenKeyExW() failure condition.
Spotted by Mark Harmstone.
2014-12-29 11:41:37 +01:00
Nikolay Sivov 5c91d011bb msdmo: Registry API functions don't return HRESULT codes. 2014-12-29 11:41:32 +01:00
Nikolay Sivov 1f93f5350b msdmo: Implement IEnumDMO_Clone(), fix trace messages. 2014-10-15 21:30:58 +09:00
Nikolay Sivov 06c52ce940 msdmo: Cleanup IEnumDMO creation code. 2014-10-15 21:30:53 +09:00
Victor Martinez Calvo 0aea3728cc msdmo: Actually copy output string in IEnumDMO_fnNext. 2014-05-05 12:17:50 +02:00
Michael Stefaniuc 8cb3ede419 msdmo: DMOGetTypes() is implemented and not a stub. 2012-09-12 12:47:18 +02:00
Alexandre Julliard e59ac81c5e msdmo: Don't use an interface pointer for an internal function. 2010-11-29 13:28:26 +01:00
Michael Stefaniuc 8d959c9949 msdmo: Use an iface instead of a vtbl pointer in IEnumDMOImpl. 2010-11-29 13:28:21 +01:00
Michael Stefaniuc dfd821d6a9 msdmo: Remove superfluous pointer casts. 2009-01-23 13:14:18 +01:00
Alexandre Julliard 505434aa08 msdmo: Convert source files to utf-8. 2008-10-18 19:20:10 +02:00
Marcus Meissner 0ff2c06c1d Fixed RegEnumKey(Ex)W buffer sizes. 2008-10-13 12:04:26 +02:00
Andrew Talbot 6324670b31 msdmo: Fix calculation of array size in bytes. 2008-04-10 09:51:42 +02:00
Andrew Talbot a9200b2401 msdmo: Array parameter is passed to function as pointer so loses size information. 2008-04-08 11:59:14 +02:00
Aric Stewart 20ae8d2804 msdmo: Fix to DMOEnum to properly enumerate the keys and properly respect the flag. 2007-10-29 12:02:33 +01:00
Francois Gouget d223716b7b msdmo: Fix the DMOGetName() prototype. 2007-10-15 14:06:30 +02:00
Francois Gouget 5e336f45d2 msdmo: Fix a winapi_check documentation warning and improve the documentation a bit. 2007-10-15 14:06:27 +02:00
Aric Stewart 352d29b194 msdmo: Improve registration and reading of codecs. 2007-10-11 16:24:29 +02:00
Aric Stewart 54720c78f7 msdmo: Implement DMOGetTypes. 2007-10-05 10:33:56 +02:00
Francois Gouget e84562a15a msdmo: Improve the prototypes Win64 compatibility by replacing long with LONG. 2007-06-13 11:18:15 +02:00
Andrew Talbot a7e82e68ea msdmo: Constify some variables. 2007-05-29 12:04:30 +02:00
Andrew Talbot 72cdeaffd9 msdmo: Declare a function static. 2007-01-12 11:23:47 +01:00
Francois Gouget 9fe4673347 Don't include windows.h & co in the Wine sources.
Remove uneeded COM_NO_WINDOWS_H defines.
2006-10-24 17:47:09 +02:00