instead of checking for invalidity, check for validity for meta_data_area

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6217 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
shatty 2004-01-21 20:40:06 +00:00
parent f785208b00
commit b84e6d90eb

View File

@ -679,7 +679,7 @@ media_format::operator=(const media_format &clone)
{
memcpy(this, &clone, sizeof(*this));
// these things only happen when a meta_data_area is defined:
if (meta_data_area != B_BAD_VALUE) {
if (meta_data_area > 0) {
thread_id thread = find_thread(NULL);
if (thread != B_NAME_NOT_FOUND) {
thread_info info;