diff options
Diffstat (limited to 'backends/wince/findgame.cpp')
-rw-r--r-- | backends/wince/findgame.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/backends/wince/findgame.cpp b/backends/wince/findgame.cpp index 17b83bb6db..421eb91e97 100644 --- a/backends/wince/findgame.cpp +++ b/backends/wince/findgame.cpp @@ -42,7 +42,7 @@ extern Config *g_config; #define MAX_GAMES 20 -int MAX_DIRECTORY = 1; +int MAX_DIRECTORY = 40; #define MAX_DISPLAYED_DIRECTORIES 7 #define MAX_DISPLAYED_GAMES 7 @@ -526,7 +526,7 @@ void doScan() { if (wcslen(basePath) != 0) { //SendMessage(GetDlgItem(hwndDlg, IDC_LISTAVAILABLE), LB_ADDSTRING, 0, (LPARAM)TEXT("..")); if (_total_directories == MAX_DIRECTORY) { - MAX_DIRECTORY += 1; + MAX_DIRECTORY += 10; directories = (DirectoryName*)realloc(directories, MAX_DIRECTORY * sizeof(DirectoryName)); } wcscpy(directories[_total_directories++].name, TEXT("..")); @@ -549,7 +549,7 @@ void doScan() { LB_ADDSTRING, 0, (LPARAM)(work ? work + 1 : desc.cFileName)); */ if (_total_directories == MAX_DIRECTORY) { - MAX_DIRECTORY += 1; + MAX_DIRECTORY += 10; directories = (DirectoryName*)realloc(directories, MAX_DIRECTORY * sizeof(DirectoryName)); } wcscpy(directories[_total_directories++].name, (work ? work + 1 : desc.cFileName)); @@ -564,7 +564,7 @@ void doScan() { LB_ADDSTRING, 0, (LPARAM)(work ? work + 1 : desc.cFileName)); */ if (_total_directories == MAX_DIRECTORY) { - MAX_DIRECTORY += 1; + MAX_DIRECTORY += 10; directories = (DirectoryName*)realloc(directories, MAX_DIRECTORY * sizeof(DirectoryName)); } wcscpy(directories[_total_directories++].name, (work ? work + 1 : desc.cFileName)); @@ -935,4 +935,4 @@ void handleSelectGame(int x, int y) { } } -#endif
\ No newline at end of file +#endif |