Module: wine Branch: master Commit: 69ea31ffb594eadb2b35c3f713d89f5488ee86f2 URL: https://gitlab.winehq.org/wine/wine/-/commit/69ea31ffb594eadb2b35c3f713d89f5...
Author: Alex Henrie alexhenrie24@gmail.com Date: Sat Feb 11 12:35:29 2023 -0700
winspool: Remove unnecessary call to RtlInitUnicodeString from add_printer_driver.
---
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;