Skip to content

Conversation

@nir9
Copy link
Contributor

@nir9 nir9 commented Feb 7, 2025

Copied the meaning of the zero return value from SetErrorMode, the following code verifies this:

#include <windows.h>
#include <stdio.h>

int main()
{
	SetErrorMode(0); // or SetThread..
	printf("the error mode is %d\n", GetErrorMode()); // or GetThread..
}

@prmerger-automator
Copy link

@nir9 : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@nir9 nir9 changed the title GetErrorMode: Add missing possible return value Get(Thread)ErrorMode: Add missing possible return value Feb 7, 2025
@nir9 nir9 changed the title Get(Thread)ErrorMode: Add missing possible return value Get(/Thread)ErrorMode: Add missing possible return value Feb 7, 2025
@Karl-Bridge-Microsoft Karl-Bridge-Microsoft merged commit d94fca8 into MicrosoftDocs:docs Feb 7, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants