mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-10-26 05:49:59 +00:00
Don't call a null pointer if a logging function is called before LiStartConnection()
This commit is contained in:
1 parent
9396f6c528
commit
cd6b636dca
1 file changed
+1
@@ -36,6 +36,7 @@
|
|||||||
#include "Limelight.h"
|
#include "Limelight.h"
|
||||||
|
|
||||||
#define Limelog(s, ...) \
|
#define Limelog(s, ...) \
|
||||||
|
if (ListenerCallbacks.logMessage) \
|
||||||
ListenerCallbacks.logMessage(s, ##__VA_ARGS__)
|
ListenerCallbacks.logMessage(s, ##__VA_ARGS__)
|
||||||
|
|
||||||
#if defined(LC_WINDOWS)
|
#if defined(LC_WINDOWS)
|
||||||
|
|||||||
Reference in new issue
Block a user