зеркало из https://github.com/mozilla/gecko-dev.git
Bug 193499 Xprint print/print preview crashes Mozilla
patch by Roland.Mainz@informatik.med.uni-giessen.de r=katakai sr=bz
This commit is contained in:
Родитель
b98ae74825
Коммит
69e4a28d96
|
@ -807,6 +807,15 @@ XPPrinterList XpuGetPrinterList( const char *printer, int *res_list_count )
|
|||
for( i = 0 ; i < list_count ; i++ )
|
||||
{
|
||||
char *s;
|
||||
|
||||
/* Workaround for http://bugzilla.mozilla.org/show_bug.cgi?id=193499
|
||||
* ("Xprint print/print preview crashes Mozilla") where the Solaris
|
||||
* Xprt may create invalid entries (e.g. |XpGetPrinterList| will
|
||||
* return |list[i].name==NULL| due to empty lines in the printer list.
|
||||
*/
|
||||
if( !list[i].name )
|
||||
continue;
|
||||
|
||||
rec_count++;
|
||||
rec = (XPPrinterRec *)realloc(rec, sizeof(XPPrinterRec)*rec_count);
|
||||
if( !rec ) /* failure */
|
||||
|
|
Загрузка…
Ссылка в новой задаче