Skip to content

Commit

Permalink
EpgTimerSrv / 予約管理につかうソートキーの形式がすこし危ういのを修正
Browse files Browse the repository at this point in the history
  • Loading branch information
xtne6f committed Sep 9, 2013
1 parent e766808 commit cbf5ac5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions EpgTimerSrv/EpgTimerSrv/ReserveManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2276,10 +2276,10 @@ void CReserveManager::CreateWorkData(CReserveInfo* reserveInfo, BANK_WORK_INFO*

if( backPriority == TRUE ){
//後の番組優先
Format(workInfo->sortKey, L"%01d%01d%08I64x%05d", tunerManual, 9-workInfo->priority, workInfo->startTime*(-1), reserveNum-reserveCount);
Format(workInfo->sortKey, L"%01d%02x%016I64x%08x", tunerManual, 255-workInfo->priority, workInfo->startTime*(-1), UINT_MAX-reserveCount);
}else{
//前の番組優先
Format(workInfo->sortKey, L"%01d%01d%08I64x%05d", tunerManual, 9-workInfo->priority, workInfo->startTime, reserveCount);
Format(workInfo->sortKey, L"%01d%02x%016I64x%08x", tunerManual, 255-workInfo->priority, workInfo->startTime, reserveCount);
}
}

Expand Down

0 comments on commit cbf5ac5

Please sign in to comment.