Changeset 627 for trunk/dll/defview.c
- Timestamp:
- Apr 21, 2007, 9:00:20 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/defview.c
r570 r627 13 13 18 Mar 07 GKY Fixed misindentifycation of nonmultimedia files by ShowMultiMedia 14 14 18 Mar 07 GKY Open mp3, ogg & flac files with OS2 object default since fm2play fails 15 21 Apr 07 GKY Find FM2Utils by path or utils directory 15 16 16 17 ***********************************************************************/ … … 41 42 BOOL played = FALSE; 42 43 CHAR loaderror[CCHMAXPATH]; 44 CHAR fbuf[CCHMAXPATH]; 43 45 HMODULE MMIOModHandle = NULLHANDLE; 44 46 PMMIOIDENTIFYFILE pMMIOIdentifyFile = NULL; … … 157 159 if (mmFormatInfo.ulMediaType == MMIO_MEDIATYPE_IMAGE && 158 160 (mmFormatInfo.ulFlags & MMIO_CANREADTRANSLATED)) { 159 /* is an image that can be translated */ 160 runemf2(SEPARATE | WINDOWED, 161 HWND_DESKTOP, 162 NULL, 163 NULL, 164 "%sIMAGE.EXE \"%s\"", 165 (fAddUtils) ? "UTILS\\" : NullStr, filename); 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 } 166 180 played = TRUE; 167 181 } … … 175 189 if (!stricmp(p, ".OGG") || !stricmp(p, ".MP3") || !stricmp(p, ".FLAC")) 176 190 OpenObject(filename, Default, hwnd); //FM2Play fails to play these 177 else 178 runemf2(SEPARATE | WINDOWED, 179 HWND_DESKTOP, 180 NULL, 181 NULL, 182 "%sFM2PLAY.EXE \"%s\"", 183 (fAddUtils) ? "UTILS\\" : NullStr, filename); 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 } 184 209 played = TRUE; 185 210 }
Note:
See TracChangeset
for help on using the changeset viewer.