From e097932ac91664f879ecdb70a62b7c18d5509691 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johnny=20Bergstr=C3=B6m?= Date: Sat, 22 Jan 2005 13:27:57 +0000 Subject: [PATCH] 0.2 file not found -> exits --- dlls/csx/source/WinCSX/WinCSX.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/dlls/csx/source/WinCSX/WinCSX.cpp b/dlls/csx/source/WinCSX/WinCSX.cpp index e047eab9..f3ee9407 100755 --- a/dlls/csx/source/WinCSX/WinCSX.cpp +++ b/dlls/csx/source/WinCSX/WinCSX.cpp @@ -111,13 +111,8 @@ bool LoadRankFromFile(HWND hDlg) { if ( !g_rank.begin() ) { if (!g_rank.loadRank(STATS_FILENAME)) { - HWND listbox = GetDlgItem(hDlg, IDC_LIST); - SendMessage( // returns LRESULT in lResult - listbox, // handle to destination control - LB_ADDSTRING, // message ID - 0, // = (WPARAM) () wParam; - (LPARAM) "File load failed!" // = (LPARAM) () lParam; - ); + MessageBox(hDlg, "File load failed! Make sure you have csstats.dat in the same directory as this executable. Exiting...", "Where IS that file of yours?", MB_OK); + PostQuitMessage(0); return false; } }