2018-01-10 Fred Gleason <fredg@paravelsystems.com>

* Fixed bugs in rdlogmanager(1) that caused segfaults under
	Windows.
This commit is contained in:
Fred Gleason 2018-01-10 11:48:40 -05:00
parent 43ca6e30cc
commit bd532a409d
2 changed files with 12 additions and 0 deletions

View File

@ -16580,3 +16580,6 @@
data to a log to remove voice track transitions.
2018-01-10 Fred Gleason <fredg@paravelsystems.com>
* Cleaned up compiler warnings.
2018-01-10 Fred Gleason <fredg@paravelsystems.com>
* Fixed bugs in rdlogmanager(1) that caused segfaults under
Windows.

View File

@ -61,11 +61,20 @@ bool RDLogLock::tryLock(QString *username,QString *stationname,
QHostAddress *addr)
{
bool ret=false;
#ifdef WIN32
QString guid=RDLogLock::makeGuid("windows");
#else
QString guid=RDLogLock::makeGuid(lock_station->name());
#endif // WIN32
#ifdef WIN32
*username="windows";
*stationname="windows";
#else
*username=lock_user->name();
*stationname=lock_station->name();
addr->setAddress(lock_station->address().toString());
#endif // WIN32
if(RDLogLock::tryLock(username,stationname,addr,lock_log_name,guid)) {
lock_timer->start(RD_LOG_LOCK_TIMEOUT/2);