Commit 5954a7f3 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

localspl: Fix error handling in printer_alloc_handle helper.

parent e09c93de
......@@ -1573,9 +1573,10 @@ static HANDLE printer_alloc_handle(LPCWSTR name, LPPRINTER_DEFAULTSW pDefault)
/* clone the full name */
printer->name = wcsdup(name);
if (name && (!printer->name)) {
if (name && !printer->name) {
printer_free(printer);
printer = NULL;
goto end;
}
if (printername) {
len = ARRAY_SIZE(L",XcvMonitor ") - 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment