|
@@ -84,8 +84,9 @@ inline aiReturn aiMaterial::Get(const char* pKey,unsigned int type,
|
|
|
return AI_FAILURE;
|
|
|
}
|
|
|
|
|
|
- // if (::strcmp(prop->mData,(char*)aiPTI_Buffer)!=0)
|
|
|
- // return AI_FAILURE;
|
|
|
+ if (prop->mType != aiPTI_Buffer) {
|
|
|
+ return AI_FAILURE;
|
|
|
+ }
|
|
|
|
|
|
iNum = std::min((size_t)iNum,prop->mDataLength / sizeof(Type));
|
|
|
memcpy(pOut,prop->mData,iNum * sizeof(Type));
|
|
@@ -110,7 +111,7 @@ inline aiReturn aiMaterial::Get(const char* pKey,unsigned int type,
|
|
|
return AI_FAILURE;
|
|
|
}
|
|
|
|
|
|
- if (strcmp(prop->mData,(char*)aiPTI_Buffer)!=0) {
|
|
|
+ if (prop->mType != aiPTI_Buffer) {
|
|
|
return AI_FAILURE;
|
|
|
}
|
|
|
|