Changeset 1398 for trunk/dll/defview.c
- Timestamp:
- Feb 21, 2009, 6:43:00 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/defview.c
r1387 r1398 141 141 /* printf("%s %d %s\n", 142 142 __FILE__, __LINE__, p); fflush(stdout);*/ 143 if (!stricmp(p, ".OGG") || !stricmp(p, ".MP3") || !stricmp(p, ".FLAC") ||144 !stricmp(p, ".JPG") || !stricmp(p, ".JPEG")){143 if (!stricmp(p, PCSZ_DOTOGG) || !stricmp(p, PCSZ_DOTMP3) || !stricmp(p, PCSZ_DOTFLAC) || 144 !stricmp(p, PCSZ_DOTJPG) || !stricmp(p, PCSZ_DOTJPEG)){ 145 145 hmmio = pMMIOOpen(filename, 146 146 &mmioinfo, … … 193 193 /* printf("%s %d %s\n", 194 194 __FILE__, __LINE__, p); fflush(stdout);*/ 195 if (!stricmp(p, ".JPG") || !stricmp(p, ".JPEG"))195 if (!stricmp(p, PCSZ_DOTJPG) || !stricmp(p, PCSZ_DOTJPEG)) 196 196 OpenObject(filename, Default, hwnd); //Image fails to display these 197 197 else // is an image that can be translated … … 206 206 /* printf("%s %d %s\n", 207 207 __FILE__, __LINE__, p); fflush(stdout);*/ 208 if (!stricmp(p, ".OGG") || !stricmp(p, ".MP3") || !stricmp(p, ".FLAC"))208 if (!stricmp(p, PCSZ_DOTOGG) || !stricmp(p, PCSZ_DOTMP3) || !stricmp(p, PCSZ_DOTFLAC)) 209 209 OpenObject(filename, Default, hwnd); //FM2Play fails to play these 210 210 else 211 RunFM2Util( "FM2PLAY.EXE", filename);211 RunFM2Util(PCSZ_FM2PLAYEXE, filename); 212 212 played = TRUE; 213 213 } … … 340 340 p = "."; 341 341 if (stricmp(p, ".INI") || !StartIniEditor(hwndParent, filename, 4)) { 342 if (stricmp(p, ".HLP") || !ViewHelp(filename)) {342 if (stricmp(p, PCSZ_DOTHLP) || !ViewHelp(filename)) { 343 343 ViewIt: 344 344 if (TestBinary(filename)) {
Note:
See TracChangeset
for help on using the changeset viewer.