aboutsummaryrefslogtreecommitdiff
path: root/backends/wince/findgame.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'backends/wince/findgame.cpp')
-rw-r--r--backends/wince/findgame.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/backends/wince/findgame.cpp b/backends/wince/findgame.cpp
index b7420979cb..8c38f794b5 100644
--- a/backends/wince/findgame.cpp
+++ b/backends/wince/findgame.cpp
@@ -273,7 +273,7 @@ static const ScummGame GameList[] = {
{
"Curse of Monkey Island",
"Completable",
- "", "COMI.LA0", "COMI.LA1",
+ "", "COMI.LA0", "",
"comi",
0
},
@@ -909,10 +909,12 @@ void findGame(TCHAR *directory) {
continue;
//MessageBox(NULL, TEXT("Check OK"), TEXT("Checking file"), MB_OK);
- MultiByteToWideChar(CP_ACP, 0, current_game.check_file_2, strlen(current_game.check_file_2) + 1, checkfile, sizeof(checkfile));
- wsprintf(work, TEXT("%s\\%s"), directory, checkfile);
- if (GetFileAttributes(work) == 0xFFFFFFFF)
- continue;
+ if (strlen(current_game.check_file_2)) {
+ MultiByteToWideChar(CP_ACP, 0, current_game.check_file_2, strlen(current_game.check_file_2) + 1, checkfile, sizeof(checkfile));
+ wsprintf(work, TEXT("%s\\%s"), directory, checkfile);
+ if (GetFileAttributes(work) == 0xFFFFFFFF)
+ continue;
+ }
//MessageBox(NULL, TEXT("Match file !"), TEXT("..."), MB_OK);
gamesFound[i] = 1;