Skip to content

Commit 57c19f1

Browse files
Copilotkatahiromz
andcommitted
Simplify error handling comment for directory creation
Co-authored-by: katahiromz <2107452+katahiromz@users.noreply.github.com>
1 parent 33f342e commit 57c19f1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/RisohEditor.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8916,9 +8916,8 @@ BOOL MMainWnd::DoWriteRC(LPCWSTR pszFileName, LPCWSTR pszResH, const EntrySet& f
89168916
INT nResult = SHCreateDirectoryExW(NULL, szDestHeaderDir, NULL);
89178917
if (nResult != ERROR_SUCCESS && nResult != ERROR_ALREADY_EXISTS)
89188918
{
8919-
// Directory creation failed, show error to user
8919+
// Directory creation failed
89208920
ErrorBoxDx(IDS_CANNOTSAVE);
8921-
// Continue to try CopyFileW anyway, which will also fail
89228921
}
89238922
}
89248923

0 commit comments

Comments
 (0)