Reorganizacija in estetski popravki
This commit is contained in:
parent
ce3226b483
commit
d37d3766f7
@ -392,7 +392,7 @@ HRESULT COpTaskCreate::Execute(CSession *pSession)
|
|||||||
ULONGLONG ullValue;
|
ULONGLONG ullValue;
|
||||||
|
|
||||||
// Convert MDY date to numerical date (SYSTEMTIME -> FILETIME -> ULONGLONG).
|
// Convert MDY date to numerical date (SYSTEMTIME -> FILETIME -> ULONGLONG).
|
||||||
memset(&stValue, 0, sizeof(SYSTEMTIME));
|
ZeroMemory(&stValue, sizeof(stValue));
|
||||||
stValue.wYear = ttData.wBeginYear;
|
stValue.wYear = ttData.wBeginYear;
|
||||||
stValue.wMonth = ttData.wBeginMonth;
|
stValue.wMonth = ttData.wBeginMonth;
|
||||||
stValue.wDay = ttData.wBeginDay;
|
stValue.wDay = ttData.wBeginDay;
|
||||||
@ -497,7 +497,7 @@ UINT COpTaskCreate::SetTriggersFromView(MSIHANDLE hView)
|
|||||||
for (;;) {
|
for (;;) {
|
||||||
UINT uiResult;
|
UINT uiResult;
|
||||||
PMSIHANDLE hRecord;
|
PMSIHANDLE hRecord;
|
||||||
TASK_TRIGGER ttData;
|
TASK_TRIGGER ttData = { sizeof(TASK_TRIGGER) };
|
||||||
ULONGLONG ullValue;
|
ULONGLONG ullValue;
|
||||||
FILETIME ftValue;
|
FILETIME ftValue;
|
||||||
SYSTEMTIME stValue;
|
SYSTEMTIME stValue;
|
||||||
@ -508,9 +508,6 @@ UINT COpTaskCreate::SetTriggersFromView(MSIHANDLE hView)
|
|||||||
if (uiResult == ERROR_NO_MORE_ITEMS) return NO_ERROR;
|
if (uiResult == ERROR_NO_MORE_ITEMS) return NO_ERROR;
|
||||||
else if (uiResult != NO_ERROR) return uiResult;
|
else if (uiResult != NO_ERROR) return uiResult;
|
||||||
|
|
||||||
ZeroMemory(&ttData, sizeof(TASK_TRIGGER));
|
|
||||||
ttData.cbTriggerSize = sizeof(TASK_TRIGGER);
|
|
||||||
|
|
||||||
// Get StartDate.
|
// Get StartDate.
|
||||||
iValue = ::MsiRecordGetInteger(hRecord, 2);
|
iValue = ::MsiRecordGetInteger(hRecord, 2);
|
||||||
if (iValue == MSI_NULL_INTEGER) return ERROR_INVALID_FIELD;
|
if (iValue == MSI_NULL_INTEGER) return ERROR_INVALID_FIELD;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user