Smaller-type-check issue resolved
This commit is contained in:
parent
8776d5fb89
commit
bb77b86f13
@ -531,8 +531,8 @@ UINT COpTaskCreate::SetTriggersFromView(MSIHANDLE hView)
|
|||||||
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;
|
||||||
ullValue = ((ULONGLONG)iValue + 138426) * 864000000000;
|
ullValue = ((ULONGLONG)iValue + 138426) * 864000000000;
|
||||||
ftValue.dwHighDateTime = ullValue >> 32;
|
ftValue.dwHighDateTime = (DWORD)((ullValue >> 32) & 0xffffffff);
|
||||||
ftValue.dwLowDateTime = ullValue & 0xffffffff;
|
ftValue.dwLowDateTime = (DWORD)( ullValue & 0xffffffff);
|
||||||
if (!::FileTimeToSystemTime(&ftValue, &stValue))
|
if (!::FileTimeToSystemTime(&ftValue, &stValue))
|
||||||
return ::GetLastError();
|
return ::GetLastError();
|
||||||
ttData.wBeginYear = stValue.wYear;
|
ttData.wBeginYear = stValue.wYear;
|
||||||
@ -543,8 +543,8 @@ UINT COpTaskCreate::SetTriggersFromView(MSIHANDLE hView)
|
|||||||
iValue = ::MsiRecordGetInteger(hRecord, 3);
|
iValue = ::MsiRecordGetInteger(hRecord, 3);
|
||||||
if (iValue != MSI_NULL_INTEGER) {
|
if (iValue != MSI_NULL_INTEGER) {
|
||||||
ullValue = ((ULONGLONG)iValue + 138426) * 864000000000;
|
ullValue = ((ULONGLONG)iValue + 138426) * 864000000000;
|
||||||
ftValue.dwHighDateTime = ullValue >> 32;
|
ftValue.dwHighDateTime = (DWORD)((ullValue >> 32) & 0xffffffff);
|
||||||
ftValue.dwLowDateTime = ullValue & 0xffffffff;
|
ftValue.dwLowDateTime = (DWORD)( ullValue & 0xffffffff);
|
||||||
if (!::FileTimeToSystemTime(&ftValue, &stValue))
|
if (!::FileTimeToSystemTime(&ftValue, &stValue))
|
||||||
return ::GetLastError();
|
return ::GetLastError();
|
||||||
ttData.wEndYear = stValue.wYear;
|
ttData.wEndYear = stValue.wYear;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user