Changeset 258


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
Location:
winamp-musepack/trunk
Files:
3 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;
  • winamp-musepack/trunk/resource.h

    r255 r258  
    55#define IDD_FORMVIEW                    101
    66#define IDD_INFO_BOX                    101
    7 #define IDB_LOGO                        106
     7#define IDB_LOGO                        102
    88#define IDC_STREAM_INFO                 1001
    99#define IDC_TITLE                       1002
     
    1818#define IDC_COMMENT                     1011
    1919#define IDC_FILE                        1012
     20#define IDC_LOGO                        1013
    2021#define IDC_STATIC                      -1
    2122
     
    2425#ifdef APSTUDIO_INVOKED
    2526#ifndef APSTUDIO_READONLY_SYMBOLS
    26 #define _APS_NEXT_RESOURCE_VALUE        107
     27#define _APS_NEXT_RESOURCE_VALUE        103
    2728#define _APS_NEXT_COMMAND_VALUE         40001
    2829#define _APS_NEXT_CONTROL_VALUE         1014
  • winamp-musepack/trunk/winamp-musepack.rc

    r257 r258  
    8585    EDITTEXT        IDC_FILE,24,6,376,12,ES_AUTOHSCROLL | ES_READONLY
    8686    RTEXT           "File",IDC_STATIC,6,8,12,8
    87     CONTROL         106,IDC_STATIC,"Static",SS_BITMAP,264,152,136,46
     87    CONTROL         IDB_LOGO,IDC_LOGO,"Static",SS_BITMAP | SS_NOTIFY,264,152,136,
     88                    46
    8889    LTEXT           "",IDC_STREAM_INFO,268,25,129,124
    8990END
Note: See TracChangeset for help on using the changeset viewer.