Skip to content

Commit 477579e

Browse files
committed
文件系统默认返回&HutaoString::Empty;
1 parent b16e64d commit 477579e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Snap.Hutao.Remastered.Native/HutaoNativeFileSystem.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ HRESULT __stdcall HutaoNativeFileSystem::PickFile(HWND hwnd, PCWSTR title, PCWST
296296
AssertNonNullAndReturn(path);
297297

298298
*picked = FALSE;
299-
*path = nullptr;
299+
*path = &HutaoString::Empty;
300300

301301
// Prepare OPENFILENAMEW structure
302302
OPENFILENAMEW ofn = { 0 };
@@ -372,7 +372,7 @@ HRESULT __stdcall HutaoNativeFileSystem::SaveFile(HWND hwnd, PCWSTR title, PCWST
372372
AssertNonNullAndReturn(path);
373373

374374
*picked = FALSE;
375-
*path = nullptr;
375+
*path = &HutaoString::Empty;
376376

377377
// Prepare OPENFILENAMEW structure
378378
OPENFILENAMEW ofn = { 0 };

0 commit comments

Comments
 (0)