Skip to content

Commit 7baa03f

Browse files
Up to 0.9.7
* Fix a bug with recent menu
1 parent 16134a5 commit 7baa03f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

main.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
#define MAX_RECENT_FILES 10
8383

8484
#define APP_NAME TEXT("sqlite-x")
85-
#define APP_VERSION TEXT("0.9.6")
85+
#define APP_VERSION TEXT("0.9.7")
8686
#ifdef __MINGW64__
8787
#define APP_PLATFORM 64
8888
#else
@@ -183,6 +183,7 @@ int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLin
183183
ShowWindow(hWnd, nCmdShow);
184184
SendMessage(hWnd, WM_SIZE, 0, 0);
185185
updateRecentList(hWnd);
186+
186187

187188
if (nArgs < 2 && getStoredValue(TEXT("open-last-db"), 1))
188189
SendMessage(hWnd, WM_COMMAND, MAKEWPARAM(IDM_RECENT, 0), 0);
@@ -338,9 +339,9 @@ void updateRecentList(HWND hWnd) {
338339
while (path16 != NULL && i < MAX_RECENT_FILES) {
339340
if (_taccess(path16, 0) == 0) {
340341
InsertMenu(hMenu, IDM_SEPARATOR2, MF_BYCOMMAND | MF_STRING, IDM_RECENT + i, path16);
341-
path16 = _tcstok(NULL, TEXT("?"));
342342
i++;
343343
}
344+
path16 = _tcstok(NULL, TEXT("?"));
344345
}
345346
}
346347
free(buf16);

0 commit comments

Comments
 (0)