diff options
author | Gerald Combs <gerald@wireshark.org> | 2018-05-17 14:21:54 -0700 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2018-05-17 22:21:04 +0000 |
commit | a0b46a06f3d073ed412e0c6e33088f606fe6cbf3 (patch) | |
tree | 34b780bd56ffb4e340f767d9367ca3027fcdb6c4 /ui/win32/file_dlg_win32.c | |
parent | 2a9886bf09eb27489d1f95bc73ccaa05da446794 (diff) |
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>
Diffstat (limited to 'ui/win32/file_dlg_win32.c')
-rw-r--r-- | ui/win32/file_dlg_win32.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/win32/file_dlg_win32.c b/ui/win32/file_dlg_win32.c index 97f16a430a..2c33d3ce33 100644 --- a/ui/win32/file_dlg_win32.c +++ b/ui/win32/file_dlg_win32.c @@ -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 |