OSDN Git Service
(root)
/
hengbandforosx
/
hengbandosx.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
09ff1c5
)
[Fix] Windows版ファイル選択ダイアログでファイル名初期値が常に未設定
author
shimitei
<shimitei@gmail.com>
Sun, 9 May 2021 03:40:02 +0000
(12:40 +0900)
committer
shimitei
<shimitei@gmail.com>
Sun, 9 May 2021 03:45:53 +0000
(12:45 +0900)
セーブファイルを開くとき、 #1023 のエンバグでファイル名が設定されなくなっている。
以前と同様にファイル名の初期値を設定するようにした。
src/main-win/main-win-utils.cpp
patch
|
blob
|
history
diff --git
a/src/main-win/main-win-utils.cpp
b/src/main-win/main-win-utils.cpp
index
3bc06bb
..
2abdd82
100644
(file)
--- a/
src/main-win/main-win-utils.cpp
+++ b/
src/main-win/main-win-utils.cpp
@@
-82,6
+82,7
@@
void open_dir_in_explorer(char *filename)
bool get_open_filename(OPENFILENAMEW *ofn, concptr dirname, char *filename, DWORD max_name_size)
{
std::vector<WCHAR> buf(max_name_size);
+ wcscpy(&buf[0], to_wchar(filename).wc_str());
to_wchar wc_dir(dirname);
// Overwrite struct data