Don't call a null pointer if a logging function is called before LiStartConnection()
This commit is contained in:
parent
9396f6c528
commit
cd6b636dca
1 changed files with 2 additions and 1 deletions
|
|
@ -36,7 +36,8 @@
|
|||
#include "Limelight.h"
|
||||
|
||||
#define Limelog(s, ...) \
|
||||
ListenerCallbacks.logMessage(s, ##__VA_ARGS__)
|
||||
if (ListenerCallbacks.logMessage) \
|
||||
ListenerCallbacks.logMessage(s, ##__VA_ARGS__)
|
||||
|
||||
#if defined(LC_WINDOWS)
|
||||
#include <crtdbg.h>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue