Module: wine Branch: master Commit: 20e3b7b8596b94ad614456fe5de21fa28e7d0098 URL: https://gitlab.winehq.org/wine/wine/-/commit/20e3b7b8596b94ad614456fe5de21fa...
Author: Alex Henrie alexhenrie24@gmail.com Date: Mon Jan 8 08:27:47 2024 -0700
winspool: Keep driver_9x in scope while it is in use.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54387
---
dlls/winspool.drv/info.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/dlls/winspool.drv/info.c b/dlls/winspool.drv/info.c index c1c3b8bf629..45521809f15 100644 --- a/dlls/winspool.drv/info.c +++ b/dlls/winspool.drv/info.c @@ -636,7 +636,7 @@ static BOOL add_printer_driver( const WCHAR *name, const WCHAR *ppd_dir ) DRIVER_INFO_3W di3; unsigned int i; BOOL res = FALSE; - WCHAR raw[] = L"RAW", driver_nt[] = L"wineps.drv"; + WCHAR raw[] = L"RAW", driver_nt[] = L"wineps.drv", driver_9x[] = L"wineps16.drv";
if (!ppd) return FALSE; if (!RtlDosPathNameToNtPathName_U( ppd, &nt_ppd, NULL, NULL )) goto end; @@ -661,7 +661,6 @@ static BOOL add_printer_driver( const WCHAR *name, const WCHAR *ppd_dir ) di3.pEnvironment = (WCHAR *)all_printenv[i]->envname; if (all_printenv[i]->driverversion == 0) { - WCHAR driver_9x[] = L"wineps16.drv"; /* We use wineps16.drv as driver for 16 bit */ di3.pDriverPath = driver_9x; di3.pConfigFile = driver_9x;