Changeset 630 for trunk/dll/defview.c
- Timestamp:
- Apr 23, 2007, 12:07:06 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/defview.c
r627 r630 42 42 BOOL played = FALSE; 43 43 CHAR loaderror[CCHMAXPATH]; 44 CHAR fbuf[CCHMAXPATH];45 44 HMODULE MMIOModHandle = NULLHANDLE; 46 45 PMMIOIDENTIFYFILE pMMIOIdentifyFile = NULL; … … 158 157 if (!rc && mmFormatInfo.fccIOProc != FOURCC_DOS) { 159 158 if (mmFormatInfo.ulMediaType == MMIO_MEDIATYPE_IMAGE && 160 (mmFormatInfo.ulFlags & MMIO_CANREADTRANSLATED)) { 161 /* is an image that can be translated */ 162 if (DosSearchPath(SEARCH_IGNORENETERRS | SEARCH_ENVIRONMENT | 163 SEARCH_CUR_DIRECTORY, 164 "PATH", "IMAGE.EXE", fbuf, CCHMAXPATH - 1)){ 165 runemf2(SEPARATE | WINDOWED, 166 HWND_DESKTOP, 167 NULL, 168 NULL, 169 "%sIMAGE.EXE \"%s\"", 170 "UTILS\\", filename); 171 } 172 else { 173 runemf2(SEPARATE | WINDOWED, 174 HWND_DESKTOP, 175 NULL, 176 NULL, 177 "IMAGE.EXE \"%s\"", 178 filename); 179 } 159 (mmFormatInfo.ulFlags & MMIO_CANREADTRANSLATED)) { 160 // is an image that can be translated 161 RunFM2Util("IMAGE.EXE", filename); 180 162 played = TRUE; 181 163 } … … 189 171 if (!stricmp(p, ".OGG") || !stricmp(p, ".MP3") || !stricmp(p, ".FLAC")) 190 172 OpenObject(filename, Default, hwnd); //FM2Play fails to play these 191 else if (DosSearchPath(SEARCH_IGNORENETERRS | SEARCH_ENVIRONMENT | 192 SEARCH_CUR_DIRECTORY, 193 "PATH", "FM2PLAY.EXE", fbuf, CCHMAXPATH - 1)){ 194 runemf2(SEPARATE | WINDOWED, 195 HWND_DESKTOP, 196 NULL, 197 NULL, 198 "%sFM2PLAY.EXE \"%s\"", 199 "UTILS\\" , filename); 200 } 201 else { 202 runemf2(SEPARATE | WINDOWED, 203 HWND_DESKTOP, 204 NULL, 205 NULL, 206 "FM2PLAY.EXE \"%s\"", 207 filename); 208 } 209 played = TRUE; 173 else 174 RunFM2Util("FM2PLAY.EXE", filename); 175 played = TRUE; 210 176 } 211 177 }
Note:
See TracChangeset
for help on using the changeset viewer.