update core/frame/small/init/src/softbus_server_stub.c.

This commit is contained in:
Ted 2021-07-28 10:04:52 +00:00 committed by Gitee
parent 76f81a7c4e
commit ab26dcdf2e

View File

@ -27,6 +27,7 @@
#include "softbus_log.h"
#include "softbus_mem_interface.h"
#include "softbus_permission.h"
#include "softbus_server_frame.h"
#include "trans_server_stub.h"
#define STACK_SIZE 0x800
@ -176,6 +177,10 @@ static int32_t Invoke(const IServerProxy *iProxy, int funcId, const void *origin
const IpcIo *req, const IpcIo *reply)
{
SoftBusLog(SOFTBUS_LOG_COMM, SOFTBUS_LOG_INFO, "RECEIVE FUNCID:%d", funcId);
if (GetServerIsInit() == false) {
SoftBusLog(SOFTBUS_LOG_COMM, SOFTBUS_LOG_ERROR, "server not init");
return SOFTBUS_ERR;
}
int tblSize = sizeof(g_serverInvokeCmdTbl) / sizeof(ServerInvokeCmd);
for (int i = 0; i < tblSize; i++) {
if (funcId == g_serverInvokeCmdTbl[i].id) {