Skip to content

Conversation

@gotoh
Copy link
Contributor

@gotoh gotoh commented Jun 20, 2025

Fix two tiny bugs in sample tracetcp.

  • Unexpected behavior by unnecessary __debugbreak() in Mine_WSALookupServiceBeginW().
  • Crash in Mine_accept() when the optional second argument addr of accept() is NULL.
  • Fix misjudgement with return value from GetTimeZoneInformation().

gotoh added 3 commits June 20, 2025 11:21
There is no need to make a address string when 'addr' is NULL.
It is wrong that treating the return value `TIME_ZONE_ID_UNKNOWN` as error.
It should be `TIMNE_ZONE_ID_INVALID` for the use.
Without this fix, the displayed time is always UTC time in Japan (no daylight saving time).
@gotoh gotoh changed the title Fix two bugs in tracetcp sample Fix some bugs in tracetcp sample Jun 20, 2025
@gotoh
Copy link
Contributor Author

gotoh commented Jun 20, 2025

@microsoft-github-policy-service agree

@gotoh gotoh changed the title Fix some bugs in tracetcp sample Fix some bugs in samples Jun 20, 2025
@BissetJ BissetJ merged commit ae57e62 into microsoft:main Jun 20, 2025
14 checks passed
@gotoh gotoh deleted the fix-samples branch June 20, 2025 23:00
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