maxegg: fix compilation error due to nullptr misuse

This commit is contained in:
rdb 2018-06-06 11:27:11 +02:00
parent e27cb2dec3
commit f990f816b8
2 changed files with 2 additions and 2 deletions

View File

@ -456,7 +456,7 @@ void MaxEggPlugin::EndEditParams( IObjParam *ip, ULONG flags,Animatable *prev)
ip->DeleteRollupPage(hMaxEggParams);
hMaxEggParams = nullptr;
} else {
SetWindowLongPtr( hMaxEggParams, GWLP_USERDATA, nullptr );
SetWindowLongPtr( hMaxEggParams, GWLP_USERDATA, 0L );
}
}

View File

@ -593,7 +593,7 @@ bool MaxOptionsDialog::UpdateFromUI(HWND hWnd) {
_stprintf(_short_name, _T("%.*s..."), sizeof(_short_name)-4, temp);
else {
_tcscpy(_short_name, temp);
_short_name[_tcslen(_short_name) - 4] = nullptr; //Cut off the .egg
_short_name[_tcslen(_short_name) - 4] = 0; //Cut off the .egg
}
_start_frame = newSF;