Win32: Add a missing check.

...otherwise we'll crash on older versions of Windows.

Change-Id: If9c1b653496930fbfad4e9e663a8340990f3f295
Reviewed-on: https://code.wireshark.org/review/27626
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Gerald Combs <gerald@wireshark.org>
This commit is contained in:
Gerald Combs 2018-05-17 14:21:54 -07:00
parent 2a9886bf09
commit a0b46a06f3
1 changed files with 1 additions and 0 deletions

View File

@ -136,6 +136,7 @@ HANDLE set_thread_per_monitor_v2_awareness(void) {
}
void revert_thread_per_monitor_v2_awareness(HANDLE context) {
if (! get_proc_addresses()) return;
SetThreadDpiAwarenessContextP((DPI_AWARENESS_CONTEXT) context);
}
#else // DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2