Commit Graph

95 Commits

Author SHA1 Message Date
Piotr Caban b602787a93 winmm: Don't use toupper.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-03-27 22:01:35 +01:00
Michael Stefaniuc 24f4781216 winmm: Use the ARRAY_SIZE() macro.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-20 16:37:19 +02:00
André Hentschel 798fd5bf27 winmm: Remove a dead assignment (Clang).
Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-22 20:18:51 +01:00
Bruno Jesus 54ecab2479 winmm: Initialize struct MMIOINFO in MMIO_Open.
Signed-off-by: Bruno Jesus <00cpxxx@gmail.com>
Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-25 15:17:47 +09:00
Piotr Caban 860618622e winmm: Save data that was not yet written in mmioSetInfo. 2015-02-23 15:26:04 +09:00
Piotr Caban 193663e8d8 winmm: Write user data after headers in mmioAdvance so IDiskOffset is updated correctly. 2015-02-23 15:26:03 +09:00
Akihiro Sagawa e2779a4c9a winmm: Don't call the custom MMIOM_SEEK handler while opening. 2014-09-01 21:10:12 +02:00
Akihiro Sagawa d5345e64f1 winmm: Avoid sending MMIOM_SEEK message in debug trace. 2014-09-01 21:10:12 +02:00
Akihiro Sagawa 8d9a7247c3 winmm: Fix SEEK_END handling for memory files. 2014-06-16 18:03:18 +02:00
Akihiro Sagawa 71b8a56c84 winmm: Update lBufOffset after seeking file directly. 2014-06-16 18:03:13 +02:00
Akihiro Sagawa f7ddc1eb95 winmm: Avoid direct seeking for memory files. 2014-06-16 18:03:12 +02:00
Akihiro Sagawa c4629e5af5 winmm: Memory file buffer is available even if we just allocate memory. 2014-06-16 18:03:10 +02:00
Lu Jiashu a0ed65f593 winmm: Clone the whole adwInfo array in MMIO_Open. 2013-09-25 13:38:14 +02:00
Akihiro Sagawa 7a22250867 winmm: Inherit the seek position when using standard file handle. 2013-04-04 19:30:21 +02:00
Akihiro Sagawa c2cf4ddb93 winmm: Fix handling of mmio file buffers. 2012-11-28 20:14:52 +01:00
Akihiro Sagawa 2d3f320463 winmm: Fix SEEK_END direction of mmio files without buffering. 2012-11-13 18:01:44 +01:00
Michael Stefaniuc d94eaa3b20 winmm: Avoid TRUE FALSE conditional expressions. 2012-07-31 12:36:20 +02:00
Francois Gouget fac36c55e9 Assorted typo, spelling, wording and case fixes. 2012-05-15 16:26:43 +02:00
Andrew Talbot 4aca760126 winmm: Constify some variables. 2011-08-23 16:53:53 +02:00
Jörg Höhle 7df286c136 winmm: Fix 8KB leak when mmioOpen fails (Valgrind). 2011-05-12 14:24:28 +02:00
Alexander Puzankov 4431c32c91 winmm: Fixed boundary condition in mmioOpen file name parsing. 2010-12-05 16:44:28 +01:00
Alexander Puzankov 507db530b2 winmm: The default I/O procedure should return MMIOERR_FILENOTFOUND if the openable file is not found. 2010-12-01 17:16:21 +01:00
Alexander Puzankov 304c455b2b winmm: Use the default I/O procedure only if a custom procedure for a given FOURCC is not found. 2010-12-01 17:16:21 +01:00
Alexander Puzankov cc5f2b2c76 winmm: Revert "Handle playing of files containing a '+' as part of the filename.".
This reverts commit ed593fdf2f.
2010-12-01 17:16:20 +01:00
Tim Cadogan-Cowper d6610b8b3a winmm: Wrap TRACE strings with debugstr_a/debugstr_an. 2010-07-22 10:12:06 +02:00
Tim Cadogan-Cowper d650316661 winmm: Correctly calculate dwFileSize for apps installing their own IOproc. 2010-06-28 11:45:09 +02:00
Eric Pouech 258d42982c winmm: Only compute dwFileSize for MMIO objects with a DOS ioproc. 2010-06-14 14:14:15 +02:00
Eric Pouech c62cf2e049 winmm: In mmio manipulation, always ensure that we use a HFILE for mmio internal handlers (and not a HANDLE). 2010-01-25 12:51:55 +01:00
Marcus Meissner 8ba51495fc winmm: Handle NULL szFileName in mmioOpen16 (Coverity). 2009-10-19 11:42:53 +02:00
Marcus Meissner 6999921a6d winmm: Return error on NULL ioProc (Coverity). 2009-10-19 11:41:52 +02:00
Eric Pouech 99c4b22bab winmm: Transform the mmio proc kind into a boolean (to distinguish between ANSI and Unicode). 2009-10-15 12:06:18 +02:00
Eric Pouech e5b4559d2e winmm: Create real 16<>32 thunks for mmio support in MMSystem. 2009-10-15 12:06:17 +02:00
Eric Pouech 0ba570141d winmm: Correctly check for the installed default ioProcs. 2009-08-29 17:11:10 +02:00
Dmitry Timoshkov d40e003303 winmm: MMIO_ALLOCBUF is ignored if mmioOpen gets a valid buffer.
Existing tests show that MMIO_ALLOCBUF flag is dropped if a valid buffer
is being passed to mmioOpen, that means the buffer is valid in that case.
2008-10-21 13:22:51 +02:00
Alexandre Julliard 7f327237bf Convert remaining source files to utf-8. 2008-10-18 19:23:08 +02:00
Dmitry Timoshkov 5d24cb4565 winmm: The buffer provided by an application is valid only in the mmioOpen(FOURCC_MEM) case. 2008-10-10 12:54:41 +02:00
Dmitry Timoshkov efcdb202b2 winmm: Clear the fccType in mmioDescend for a not RIFF/LIST case. 2008-06-18 17:11:27 +02:00
Dmitry Timoshkov 64cbea525b winmm: Add the tests for mmioOpen and mmioSetBuffer, make them pass under Wine. 2008-06-18 17:11:14 +02:00
Matthew D'Asaro f684dac0fc mmio: Do not zero current file position whenever mmioSetBuffer is called. 2008-06-05 11:27:54 +02:00
Andrew Talbot d3e904202a winmm: Assign to struct instead of using memcpy. 2008-03-24 11:33:10 +01:00
Alexandre Julliard 1e178be862 winmm: Get rid of the WINE_MM_IDATA global structure, there's only one instance anyway. 2007-06-07 17:50:28 +02:00
Eric Pouech 2f540b8602 winmm: Remove WINE_NO_LONG_AS_INT. 2006-11-09 11:44:30 +01:00
Jonathan Ernst 360a3f9142 Update the address of the Free Software Foundation. 2006-05-23 14:11:13 +02:00
Dmitry Timoshkov 08de86c831 Add a test for mmioDescend, make it pass under Wine. 2005-09-16 19:40:27 +00:00
Ulrich Czekalla 613cf57872 ckid not fccType specifies the form type to search for. 2005-09-08 18:55:33 +00:00
Ulrich Czekalla ee934ffadd Remove redundant check. 2005-09-08 11:02:15 +00:00
Mike McCormack 795b17e055 Make WINMM_IData statically allocated. 2005-04-27 08:12:58 +00:00
Peter Berg Larsen 001a936176 Assorted memleak fixes. Found on Michael Stefaniuc smatch list. 2005-03-11 12:50:27 +00:00
Eric Pouech 1eed552b4d - rewrite MCI interfaces as Unicode interface (as it should be)
- made some winmm APIs rely on the Unicode version for the core
  implementation (instead of Ansi flavor)
2005-02-09 22:26:25 +00:00
Francois Gouget ee0344a4a2 Remove unneeded NULL casts. 2004-12-22 15:13:20 +00:00