Skip to content

Commit 3700a56

Browse files
authored
修正 SetLogCallback 函数中的日志回调函数分配错误 (Tencent#2162)
1 parent 63d3e35 commit 3700a56

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

unity/native/puerts/source/Puerts.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ PESAPI_MODULE_EXPORT pesapi_registry_api* GetRegisterApi()
4141
PESAPI_MODULE_EXPORT void SetLogCallback(LogCallback Log, LogCallback LogWarning, LogCallback LogError)
4242
{
4343
GLogCallback = Log;
44-
GLogWarningCallback = LogError;
45-
GLogErrorCallback = LogWarning;
44+
GLogWarningCallback = LogWarning;
45+
GLogErrorCallback = LogError;
4646
}
4747

4848
#ifdef __cplusplus

0 commit comments

Comments
 (0)