no message

This commit is contained in:
Kelvin Sherlock 2015-01-15 16:37:58 -05:00
parent b146399a7e
commit 74370db603

View File

@ -100,6 +100,14 @@ namespace
return true;
}
template<class Fx>
int16_t with_handle(uint32_t handle, Fx fx)
{
auto iter = HandleMap.find(handle);
if (iter == HandleMap.end()) return MacOS::memWZErr;
return fx(iter->second);
}
}
namespace MM