2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
|
exit(1);
}
/*
* Beep.
*/
void beep(int mode) {
if (mode == 1)
MessageBeep(MB_OK);
}
|
|
>
>
>
>
>
>
>
>
>
|
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
|
exit(1);
}
/*
* Beep.
*/
void beep(int mode) {
if (mode == BELL_DEFAULT) {
MessageBeep(MB_OK);
} else if (mode == BELL_WAVEFILE) {
if (!PlaySound(cfg.bell_wavefile, NULL, SND_ASYNC | SND_FILENAME)) {
char buf[sizeof(cfg.bell_wavefile)+80];
sprintf(buf, "Unable to play sound file\n%s\n"
"Using default sound instead", cfg.bell_wavefile);
MessageBox(hwnd, buf, "PuTTY Sound Error", MB_OK | MB_ICONEXCLAMATION);
cfg.beep = BELL_DEFAULT;
}
}
}
|