Corretto metodo TPrinter::is_fax(). Se il device non e' presente ritorna

FALSE.


git-svn-id: svn://10.65.10.50/trunk@3305 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
angelo 1996-07-31 15:42:55 +00:00
parent 621bf39f3d
commit 98613cefe6

@ -1098,7 +1098,8 @@ bool TPrinter::isfax() const
const char* name = (const char*)((TPrinter*)this)->get_printrcd() + 4;
TToken_string p(256, ',');
GetProfileString ("devices", name, "", (char*)(const char*)p, p.size());
fax = stricmp(p.get(1), "EASYFAX") == 0;
const char * driver = p.get(1);
fax = driver != NULL && stricmp(driver, "EASYFAX") == 0;
}
return fax;
}
@ -2173,4 +2174,4 @@ bool TPrinter::send_fax(const char* tipo, const char* codice)
open(); // riapre la stampante
}
return ok;
}
}