summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--redo/dialog_windows.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/redo/dialog_windows.c b/redo/dialog_windows.c
index 10fb75c..f8ef687 100644
--- a/redo/dialog_windows.c
+++ b/redo/dialog_windows.c
@@ -25,7 +25,7 @@ static DWORD WINAPI doOpenFile(LPVOID data)
ofn.hInstance = hInstance;
ofn.lpstrFilter = NULL; // no filters
ofn.lpstrFile = o->filenameBuffer;
- ofn.nMaxFile = NFILENAME + 1; // TODO include + 1?
+ ofn.nMaxFile = NFILENAME + 1; // seems to include null terminator according to docs
ofn.lpstrInitialDir = NULL; // let system decide
ofn.lpstrTitle = NULL; // let system decide
// TODO OFN_SHAREAWARE?