Revision: 4940 http://tigervnc.svn.sourceforge.net/tigervnc/?rev=4940&view=rev Author: ossman_ Date: 2012-07-18 14:29:54 +0000 (Wed, 18 Jul 2012) Log Message: ----------- Fix improper check of errors when getting a suitable RandR mode.
Modified Paths: -------------- trunk/unix/xserver/hw/vnc/XserverDesktop.cc Modified: trunk/unix/xserver/hw/vnc/XserverDesktop.cc =================================================================== --- trunk/unix/xserver/hw/vnc/XserverDesktop.cc 2012-07-18 14:28:58 UTC (rev 4939) +++ trunk/unix/xserver/hw/vnc/XserverDesktop.cc 2012-07-18 14:29:54 UTC (rev 4940) @@ -946,7 +946,7 @@ else { mode = findRandRMode(output, iter->dimensions.width(), iter->dimensions.height()); - if (!ret) { + if (mode == NULL) { vlog.error("Failed to find a suitable mode for %dx%d for output '%s'", iter->dimensions.width(), iter->dimensions.height(), output->name); @@ -1027,7 +1027,7 @@ mode = findRandRMode(output, iter->dimensions.width(), iter->dimensions.height()); - if (!ret) { + if (mode == NULL) { vlog.error("Failed to find a suitable mode for %dx%d for output '%s'", iter->dimensions.width(), iter->dimensions.height(), output->name); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Tigervnc-commits mailing list Tigervnc-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tigervnc-commits