mciavi: MCI_OPEN @NNNN should use an open AVIFile/Stream handle. (try 2)

Joerg-Cyril.Hoehle at Joerg-Cyril.Hoehle at
Mon Nov 15 05:45:17 CST 2010


MSDN documents this @NNNNNN case for MCIAVI.

The file name @11223344 encodes an AVIFile handle in decimal notation
in Win3.1 and w2k/NT, but this feature is absent in win95 (KB140750).

Confirming the exception, Wine is currently bug compatible :-) with win95 which will
open a file named "@1024", while w2k crashes at address #x00004000.

open @1024 type avivideo alias a

I verified that w2k's MCIAVI can indeed play a file opened by AVIFileOpen().
    err = AVIFileOpen(&pfile, "test.avi", OF_READ, NULL);
    ok(!err || err == AVIERR_FILEOPEN, "AVIFileOpen error %x\n", err);
    if(!err) trace("AVIFile handle %ld\n", (DWORD_PTR) pfile);

 Jörg Höhle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-mciavi-MCI_OPEN-NNNN-should-use-an-open-AVIFile-St.patch
Type: application/octet-stream
Size: 2112 bytes
Desc: 0001-mciavi-MCI_OPEN-NNNN-should-use-an-open-AVIFile-St.patch
URL: <>

More information about the wine-patches mailing list