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

viogpu: Fix compilation warning in EWDK11 22H2 #850

Merged
merged 1 commit into from Nov 2, 2022

Conversation

kostyanf14
Copy link
Collaborator

ExAllocatePoolWithTag has been deprecated in Windows 10 version 2004. Starting with EWDK 11 22H2, using ExAllocatePoolWithTag causes a warning, which is treated as an error.

EWDK suggests replacing ExAllocatePoolWithTag on ExAllocatePool2, but ExAllocatePool2 only works on Windows 10 2004 and above. This commit replaced this function with ExAllocatePoolUninitialized to support Windows 10 2004 and below.
All of these features first appeared in WDK 2004.

Fixes for https://bugzilla.redhat.com/show_bug.cgi?id=2138115

Signed-off-by: Kostiantyn Kostiuk konstantin@daynix.com

ExAllocatePoolWithTag has been deprecated in Windows 10 version 2004.
Starting with EWDK 11 22H2, using ExAllocatePoolWithTag causes a warning,
which is treated as an error.

EWDK suggests replacing ExAllocatePoolWithTag on ExAllocatePool2,
but ExAllocatePool2 only works on Windows 10 2004 and above.
This commit replaced this function with ExAllocatePoolUninitialized
to support Windows 10 2004 and below.
All of these features first appeared in WDK 2004.

Fixes for https://bugzilla.redhat.com/show_bug.cgi?id=2138115

Signed-off-by: Kostiantyn Kostiuk <konstantin@daynix.com>
@YanVugenfirer YanVugenfirer merged commit 2d97893 into virtio-win:master Nov 2, 2022
1 of 2 checks passed
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.

None yet

3 participants