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:
@@ -679,7 +679,7 @@ media_format::operator=(const media_format &clone)
|
|||||||
{
|
{
|
||||||
memcpy(this, &clone, sizeof(*this));
|
memcpy(this, &clone, sizeof(*this));
|
||||||
// these things only happen when a meta_data_area is defined:
|
// 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);
|
thread_id thread = find_thread(NULL);
|
||||||
if (thread != B_NAME_NOT_FOUND) {
|
if (thread != B_NAME_NOT_FOUND) {
|
||||||
thread_info info;
|
thread_info info;
|
||||||
|
|||||||
Reference in New Issue
Block a user