Changeset 1783 for trunk/dll/defview.c


Ignore:
Timestamp:
Jul 19, 2014, 10:39:26 PM (11 years ago)
Author:
Gregg Young
Message:

Fix shift click on windows bitmap opens fm2play because MMOS2 identifies it as an audio file. Ticket [541]

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/defview.c

    r1780 r1783  
    3131                This fixes some traps in GBM.DLL and PMCTLS.DLL; mmioIdentifyFile appears to pretty much be broken.
    3232  28 Jun 14 GKY Fix errors identified with CPPCheck
     33  19 Jul 14 GKY MMOS2 misids all kinds of things including window bitmaps as audio files
     34                Removed FM2play from code since the misid leads to a failure to open the
     35                bitmaps.
    3336
    3437***********************************************************************/
     
    161164  if (!rc && (mmFormatInfo.fccIOProc != FOURCC_DOS ||
    162165              !stricmp(p, PCSZ_DOTMPG) || !stricmp(p, PCSZ_DOTMPEG))) {
    163     if (mmFormatInfo.ulMediaType == MMIO_MEDIATYPE_IMAGE &&
    164         (mmFormatInfo.ulFlags & MMIO_CANREADTRANSLATED)) {
    165       //if (!stricmp(p, PCSZ_DOTJPG) || !stricmp(p, PCSZ_DOTJPEG))
    166         OpenObject(filename, Default, hwnd);  //Image fails to display these
    167      // else       // is an image that can be translated
    168       //  RunFM2Util(PCSZ_IMAGEEXE, filename); // 29 Oct 11 GKY Image.exe doesn't handle multilayer bitmaps or jpgs
    169       played = TRUE;
    170     }
    171     else if (mmFormatInfo.ulMediaType != MMIO_MEDIATYPE_IMAGE) {
    172         // is a multimedia file (WAV, MID, AVI, etc.)
    173       if (!stricmp(p, PCSZ_DOTOGG) || !stricmp(p, PCSZ_DOTMP3) || !stricmp(p, PCSZ_DOTFLAC))
    174         OpenObject(filename, Default, hwnd);  //FM2Play fails to play these
    175       else
    176         RunFM2Util(PCSZ_FM2PLAYEXE, filename);
    177       played = TRUE;
     166    if ((mmFormatInfo.ulFlags & MMIO_CANREADTRANSLATED)) {
     167        OpenObject(filename, Default, hwnd);
     168        played = TRUE;
    178169    }
    179170  }
     
    354345                StartMLEEditor(hwndParent, 5, filename, hwndFrame);
    355346            }
    356             //}
    357347          }
    358348        }
Note: See TracChangeset for help on using the changeset viewer.