mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-14 21:35:43 +00:00
win32u: Query basic instead of full key information to get the LastWriteTime.
Signed-off-by: Torge Matthies <tmatthies@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
32d557142c
commit
970405df1c
|
@ -1246,7 +1246,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;
|
||||
|
@ -1258,8 +1258,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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue