mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-04-19 14:40:34 +00:00
Don't call a null pointer if a logging function is called before LiStartConnection()
This commit is contained in:
@@ -36,7 +36,8 @@
|
|||||||
#include "Limelight.h"
|
#include "Limelight.h"
|
||||||
|
|
||||||
#define Limelog(s, ...) \
|
#define Limelog(s, ...) \
|
||||||
ListenerCallbacks.logMessage(s, ##__VA_ARGS__)
|
if (ListenerCallbacks.logMessage) \
|
||||||
|
ListenerCallbacks.logMessage(s, ##__VA_ARGS__)
|
||||||
|
|
||||||
#if defined(LC_WINDOWS)
|
#if defined(LC_WINDOWS)
|
||||||
#include <crtdbg.h>
|
#include <crtdbg.h>
|
||||||
|
|||||||
Reference in New Issue
Block a user