Do not rename printercache blob if we dont have
source and dest name. git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1776 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
parent
013ac6d541
commit
f5eac11fe8
@ -3,6 +3,8 @@
|
||||
Entrypoint and utility functions
|
||||
Copyright (C) Matthew Chapman <matthewc.unsw.edu.au> 1999-2008
|
||||
Copyright (C) Jeroen Meijer <jeroen@oldambt7.com> 2003-2008
|
||||
Copyright (C) Henrik Andersson <hean01@cendio.com> 2013
|
||||
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@ -249,6 +251,7 @@ printercache_process(STREAM s)
|
||||
rdp_in_unistr(s, printer_length, &printer, &printer_length);
|
||||
rdp_in_unistr(s, driver_length, &driver, &driver_length);
|
||||
|
||||
if (printer != NULL && driver != NULL)
|
||||
printercache_rename_blob(printer, driver);
|
||||
|
||||
free(printer);
|
||||
|
Loading…
Reference in New Issue
Block a user