!296 集成测试osEventFlagsGet传NULL时应该返回0
Merge pull request !296 from 董逸群/OpenHarmony_1.0.1_release
This commit is contained in:
commit
275357fc54
|
@ -895,7 +895,7 @@ uint32_t osEventFlagsGet(osEventFlagsId_t ef_id)
|
||||||
uint32_t rflags;
|
uint32_t rflags;
|
||||||
|
|
||||||
if (pstEventCB == NULL) {
|
if (pstEventCB == NULL) {
|
||||||
return (uint32_t)osFlagsErrorParameter;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
uwIntSave = LOS_IntLock();
|
uwIntSave = LOS_IntLock();
|
||||||
|
|
Loading…
Reference in New Issue