Fix from Michael Wardle in bell error message
[u/mdw/putty] / window.c
index 9c77861..823ce3f 100644 (file)
--- a/window.c
+++ b/window.c
@@ -4436,7 +4436,7 @@ void beep(void *frontend, int mode)
            char buf[sizeof(cfg.bell_wavefile) + 80];
            char otherbuf[100];
            sprintf(buf, "Unable to play sound file\n%s\n"
-                   "Using default sound instead", cfg.bell_wavefile);
+                   "Using default sound instead", cfg.bell_wavefile.path);
            sprintf(otherbuf, "%.70s Sound Error", appname);
            MessageBox(hwnd, buf, otherbuf,
                       MB_OK | MB_ICONEXCLAMATION);