Skip to content

GetLastError() doesn't return anything if the call succeeds#1646

Open
SiliconA-Z wants to merge 1 commit intoswiftlang:mainfrom
SiliconA-Z:buffers
Open

GetLastError() doesn't return anything if the call succeeds#1646
SiliconA-Z wants to merge 1 commit intoswiftlang:mainfrom
SiliconA-Z:buffers

Conversation

@SiliconA-Z
Copy link
Copy Markdown
Contributor

@SiliconA-Z SiliconA-Z commented Dec 11, 2025

Changed GetLastError() to ERROR_ALREADY_EXISTS when destination file exists check succeeds.

Copy link
Copy Markdown
Contributor

@itingliu itingliu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a description of this PR? Please feel free to refer to the PR template for what's to include.

@SiliconA-Z SiliconA-Z requested a review from itingliu December 12, 2025 18:28
Changed GetLastError() to ERROR_ALREADY_EXISTS when destination file exists check succeeds.
@itingliu itingliu dismissed their stale review January 13, 2026 22:40

Thanks for adding a description

Copy link
Copy Markdown
Contributor

@itingliu itingliu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But meanwhile can we add a test for this?

@itingliu itingliu dismissed their stale review January 13, 2026 22:43

Given that this is a real bug from code inspection, I think it's fair to merge it

@itingliu
Copy link
Copy Markdown
Contributor

@swift-ci test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants