Module: wine Branch: master Commit: 0ee8f4ab974ad9b9960186b961fd5cf9f54c2e70 URL: https://gitlab.winehq.org/wine/wine/-/commit/0ee8f4ab974ad9b9960186b961fd5cf...
Author: Rémi Bernon rbernon@codeweavers.com Date: Tue May 14 14:03:20 2024 +0200
win32u: Fix default_update_display_devices return type to NTSTATUS.
---
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 d25ac89f130..2914454936d 100644 --- a/dlls/win32u/sysparams.c +++ b/dlls/win32u/sysparams.c @@ -1711,7 +1711,7 @@ static BOOL update_display_cache_from_registry(void) return ret; }
-static BOOL default_update_display_devices( BOOL force, struct device_manager_ctx *ctx ) +static NTSTATUS default_update_display_devices( BOOL force, struct device_manager_ctx *ctx ) { /* default implementation: expose an adapter and a monitor with a few standard modes, * and read / write current display settings from / to the registry. @@ -1742,7 +1742,7 @@ static BOOL default_update_display_devices( BOOL force, struct device_manager_ct struct gdi_monitor monitor = {0}; DEVMODEW mode = {.dmSize = sizeof(mode)};
- if (!force) return TRUE; + if (!force) return STATUS_ALREADY_COMPLETE;
add_gpu( "Default GPU", &pci_id, NULL, 0, ctx ); add_source( "Default", source_flags, ctx ); @@ -1760,7 +1760,7 @@ static BOOL default_update_display_devices( BOOL force, struct device_manager_ct add_monitor( &monitor, ctx ); add_modes( &mode, ARRAY_SIZE(modes), modes, ctx );
- return TRUE; + return STATUS_SUCCESS; }
/* parse the desktop size specification */