Commit Graph

51 Commits

Author SHA1 Message Date
Michael Stefaniuc 2e3a8a6fb8 dmloader: Handle NULL and empty path strings in SetSearchDirectory().
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-25 21:03:21 +02:00
Michael Stefaniuc 0f202ac84b dmloader: Initialize a stack variable to avoid erratic test behavior.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-19 10:36:32 +02:00
Michael Stefaniuc a69dbd41be dmloader: Return an error for an invalid directory.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-27 22:23:18 +02:00
Michael Stefaniuc 879c428200 dmloader: Cleanup IDirectMusicLoaderImpl_SetSearchDirectory().
and emit a FIXME only if the clear flag is set.

Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-27 22:23:15 +02:00
Michael Stefaniuc ed6ee0f815 dmloader: Avoid a crash on a NULL string pointer.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-27 22:23:11 +02:00
Fabian Maurer ca0f6c0d51 dmloader: Better error reporting in IDirectMusicLoaderImpl_SetObject.
Signed-off-by: Fabian Maurer <dark.shadow4@web.de>
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-11-21 20:57:06 +01:00
Michael Stefaniuc 917d5eabe6 dmloader: None of the COM classes support aggregation. 2014-03-13 11:21:40 +01:00
Marcus Meissner b27027ef09 dmloader: Check return of CoCreateInstance (Coverity). 2013-01-08 16:35:34 +01:00
Christian Costa cdf727ebd1 dmloader: Use dump_DMUS_OBJECTDESC to dump data to avoid truncation in TRACE. 2012-12-20 18:29:46 +01:00
Christian Costa b47facb4af dmloader: COM cleanup of IDirectMusicLoader object. 2012-12-18 19:26:26 +01:00
André Hentschel 295ffdfa96 dmloader: Fix sizeof statement (coverity). 2012-11-05 11:14:40 +01:00
Francois Gouget fac36c55e9 Assorted typo, spelling, wording and case fixes. 2012-05-15 16:26:43 +02:00
Andrew Eikum 5e522a1d1c dmloader: Don't claim partial success when loading fails. 2012-03-26 12:41:27 +02:00
Francois Gouget 2b54a7ee72 dmloader: Remove an unused critical section. 2011-11-14 15:25:27 +01:00
Michael Stefaniuc 989f39ef32 dmloader: Simplify the module refcount handling. 2011-08-02 11:51:06 +02:00
David Adam 5e39af2683 dmloader: Fix a possible null dereference. 2010-01-06 10:47:42 +01:00
Marcus Meissner 6891b96364 dmloader: pObject NULL checks are not necessary (Coverity). 2009-12-11 12:16:26 +01:00
Francois Gouget 96848a0605 Remove spaces before '\n's. 2009-03-09 12:05:58 +01:00
Francois Gouget 2166afceb7 Assorted spelling fixes. 2008-12-29 11:36:49 +01:00
Francois Gouget fae2edb91e dmloader: Add a trailing '\n' to a Wine trace. 2008-12-17 15:27:24 +01:00
Alexandre Julliard 02bfacff5a dmloader: Make some functions static. 2008-12-03 12:12:34 +01:00
Francois Gouget b362db0327 dmloader: Remove WINAPI on static functions where not needed. 2008-12-01 12:44:46 +01:00
Michael Stefaniuc b609a5c037 dmloader: Do not cast NULL. 2008-11-03 13:41:49 +01:00
Andrew Talbot 4cd6ef739d dmloader: Assign to structs instead of using memcpy. 2008-02-25 13:27:27 +01:00
Alexandre Julliard 7718d2bd7c dmusic: Fix license headers that mistakenly use GPL instead of LGPL.
Confirmed by the original author and the major contributors.
2007-05-30 12:54:07 +02:00
Jan Zerebecki 70f6afdc9c dmloader: Add DebugInfo to critical sections. 2007-03-12 13:41:16 +01:00
Michael Stefaniuc 187b6ed9b9 dmloader: Win64 printf format warning fixes. 2006-10-12 21:42:58 +02:00
Francois Gouget 5d6ab30c58 dmloader: Modify the debugstr_DMUS_* functions to return strings that never end with a '\n'. 2006-10-06 17:29:32 +02:00
Alexandre Julliard 12179978fb dmloader: Make the virtual table functions static where possible. 2006-06-10 11:56:03 +02:00
Jonathan Ernst 360a3f9142 Update the address of the Free Software Foundation. 2006-05-23 14:11:13 +02:00
Christian Costa 110cca72e6 Add some checks and fix some stream leaks. 2005-11-08 10:56:13 +00:00
Alexandre Julliard b8d3075d83 Uncomment the typedef in the DECLARE_INTERFACE macro, and get rid of
duplicate typedefs.
2005-07-26 18:32:53 +00:00
Mike McCormack c7fdb4565a Fix gcc 4.0 -Wpointer-sign warnings. 2005-07-05 11:02:54 +00:00
Dmitry Timoshkov 247246ede7 Make more of the OLE interface vtables const. 2005-05-30 10:01:08 +00:00
Alexandre Julliard ebe3c529b1 Janitorial: C booleans must not be compared against TRUE. 2004-12-09 14:07:59 +00:00
Hans Leidekker fe442b21f7 Fix signed/unsigned comparison warnings. 2004-09-08 01:23:57 +00:00
Alexandre Julliard f714b39762 Get rid of the no longer used ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE
macro.
2004-08-23 19:39:48 +00:00
Alexandre Julliard 48c4bb3c31 Get rid of the non-standard ICOM_VTABLE macro. 2004-08-12 23:00:51 +00:00
Francois Gouget 497709b9bb Assorted spelling and case fixes. 2004-06-15 20:26:45 +00:00
Rok Mandeljc 72c80375fa dmloader: complete rewrite and full implementation. 2004-05-13 00:00:22 +00:00
Raphael Junqueira 410bdd365f - scripts sub-containers loading
- better segments Load and ParseDescriptor behaviors
2004-03-12 01:53:05 +00:00
Rok Mandeljc b26d65bba9 Added name resolving for CLSIDs, IIDs, GUIDs and return codes. 2004-02-25 01:30:03 +00:00
Rok Mandeljc 0382ea1d8a - updated resources to DX9
- completely rewritten headers (DX9 compat.; look much nicer now ;=)
- removed IDirectMusicSong and IDirectMusicMelodyFormulationTrack
  (which are removed from DX9; weren't implemented in DX8 anyway)
- combined/simplified IDirectMusicSomething / IDirectMusicObject /
  IPersistStream for objects that support loading
- implemented IDirectMusicObject on all such objects; via generic
  functions
- combined IDirectMusicTrack(8)/IPersistStream on all tracks
- fully implemented IDirectMusicContainer (at least 90% if there are
  no private interfaces)
- implemented IDirectMusicCollection (99% work & MS compliant
  behaviour; except for instruments)
- tried to implement IDirectMusicInstrument (unfortunately uses some
  dirty private interfaces... :(
- added dswave.dll; DirectMusic Wave
- some changes in style
- many, many more ;)
2004-01-20 00:21:40 +00:00
Raphael Junqueira 62ddeb9da5 - better traces
- some IPersistStream::GetClassID implementation
- add the "search by name" support for IDirectMusicLoader8::GetObject
  (and a hack for understanding containers use)
2003-10-31 00:08:02 +00:00
Rok Mandeljc f1598b9792 Fix dmloader's behavior to be more MS compliant. 2003-10-28 00:10:38 +00:00
Raphael Junqueira 493660a529 - Some fixes on DirectSound init (need SetCooperativeLevel as seen in
msdn) on IDirectMusicPerformance8::InitAudio.
- Some fixes in IDirectMusicPerformance8ImplCreateStandardAudioPath
  (not perfect yet, need to understand/fix the channel init/use).
- Fix typo on CreateDirectMusicContainer.
- Add missing define in dsound.h.
- Better traces on IDirectMusicLoader8::SetSearchDirectory.
2003-10-27 22:08:37 +00:00
Rok Mandeljc 1d0585c43d Rewritten cache code and fixed a bug that was in it. 2003-09-22 19:37:33 +00:00
Francois Gouget 2a3d5fc105 A few spelling fixes. 2003-09-08 18:54:08 +00:00
Alexandre Julliard e37c6e18d0 Fixed header dependencies to be fully compatible with the Windows
headers (with help from Dimitrie O. Paun).
2003-09-05 23:08:26 +00:00
Rok Mandeljc df167d17c6 - implemented loader, loader's stream and loading of objects (now you
can use builtin dmloader and native other dm*.dlls)
- implemented proper creation of objects and retrieval of dmusic
  interfaces from them (object, stream, ...)
- implemented all "standard track types" and appropriate stream (for
  dmband, loading is almost complete)
- cleaned some obsolete stuff
- split debug channels
2003-08-22 23:53:27 +00:00