[PATCH 4/4] win32u: Query basic instead of full key information to get the LastWriteTime.
Torge Matthies
tmatthies at codeweavers.com
Fri May 6 15:55:02 CDT 2022
Signed-off-by: Torge Matthies <tmatthies at codeweavers.com>
---
dlls/win32u/sysparams.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/win32u/sysparams.c b/dlls/win32u/sysparams.c
index f905ac02f5ac..86c7d4ad2dbb 100644
--- a/dlls/win32u/sysparams.c
+++ b/dlls/win32u/sysparams.c
@@ -1247,7 +1247,7 @@ static void clear_display_devices(void)
static BOOL update_display_cache_from_registry(void)
{
DWORD adapter_id, monitor_id, monitor_count = 0, size;
- KEY_FULL_INFORMATION key;
+ KEY_BASIC_INFORMATION key;
struct adapter *adapter;
struct monitor *monitor;
HANDLE mutex = NULL;
@@ -1259,8 +1259,8 @@ static BOOL update_display_cache_from_registry(void)
sizeof(devicemap_video_keyW) )))
return FALSE;
- status = NtQueryKey( video_key, KeyFullInformation, &key,
- offsetof(KEY_FULL_INFORMATION, Class), &size );
+ status = NtQueryKey( video_key, KeyBasicInformation, &key,
+ offsetof(KEY_BASIC_INFORMATION, Name), &size );
if (status && status != STATUS_BUFFER_OVERFLOW)
return FALSE;
--
2.36.0
More information about the wine-devel
mailing list