Ignore:
Timestamp:
03/30/07 13:53:50 (17 years ago)
Author:
r2d
Message:
  • corrected a bug crashing winamp when trying to see informations on a non-existing mpc file
  • added link in the logo
File:
1 edited

Legend:

Unmodified
Added
Removed
  • winamp-musepack/trunk/mpc_player.cpp

    r254 r258  
    8686        wait_event = 0;
    8787        tag_file = 0;
     88        lastfn[0] = 0;
    8889       
    8990        TagLib::FileRef fileRef;
     
    120121                tag_file = 0;
    121122        }
     123        lastfn[0] = 0;
    122124}
    123125
     
    329331void mpc_player::initDlg(HWND hDlg)
    330332{
     333        if (lastfn[0] == 0) {
     334                SetDlgItemText(hDlg, IDC_FILE, "Can't open file");
     335                return;
     336        }
     337
    331338        std::ostringstream tmp;
    332339
     
    405412                        EndDialog(hDlg, LOWORD(wParam));
    406413                        return TRUE;
     414                } else if (LOWORD(wParam) == IDC_LOGO) {
     415                        ShellExecute( hDlg, "open", "http://www.musepack.com", NULL, NULL, SW_NORMAL);
    407416                }
    408417                break;
Note: See TracChangeset for help on using the changeset viewer.