Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DEV9: Don't shadow return value of GetAdaptersAddresses (Pcap) #4960

Merged
merged 1 commit into from
Dec 4, 2021

Conversation

TheLastRar
Copy link
Contributor

Description of Changes

Don't shadow dwStatus in PCAPGetWin32Adapter

Rationale behind Changes

Shadowing dwStatus for the return value of GetAdaptersAddresses will prevent the return value of second call from being inspected in the following if statement

If the user had a large amount of network adapters, this would prevent the code from getting the adapter information of a the selected pcap adaptor.

The equivalent TAP adapter code is already correct.

Suggested Testing Steps

Test pcap adaptor on a system with lots of adapters installed

@github-actions github-actions bot added the DEV9 label Oct 29, 2021
@lightningterror lightningterror merged commit 3835fc5 into PCSX2:master Dec 4, 2021
@TheLastRar TheLastRar deleted the DEV9-VarShadow branch December 4, 2021 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants