[PATCH 0/1] MR2166: winspool: Remove unnecessary call to RtlInitUnicodeString from add_printer_driver.
From: Alex Henrie <alexhenrie24(a)gmail.com> --- dlls/winspool.drv/info.c | 1 - 1 file changed, 1 deletion(-) diff --git a/dlls/winspool.drv/info.c b/dlls/winspool.drv/info.c index 9ce3125787f..61017104ab1 100644 --- a/dlls/winspool.drv/info.c +++ b/dlls/winspool.drv/info.c @@ -642,7 +642,6 @@ static BOOL add_printer_driver( const WCHAR *name, const WCHAR *ppd_dir ) WCHAR raw[] = L"RAW", driver_nt[] = L"wineps.drv"; if (!ppd) return FALSE; - RtlInitUnicodeString( &nt_ppd, NULL ); if (!RtlDosPathNameToNtPathName_U( ppd, &nt_ppd, NULL, NULL )) goto end; ppd_params.printer = name; -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/2166
This merge request was approved by Huw Davies. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/2166
participants (3)
-
Alex Henrie -
Alex Henrie (@alexhenrie) -
Huw Davies (@huw)