diff --git a/app/streaming/session.cpp b/app/streaming/session.cpp index f492426a..d1878c7f 100644 --- a/app/streaming/session.cpp +++ b/app/streaming/session.cpp @@ -58,7 +58,7 @@ void Session::clStageStarting(int stage) QCoreApplication::processEvents(QEventLoop::ExcludeUserInputEvents); } -void Session::clStageFailed(int stage, long errorCode) +void Session::clStageFailed(int stage, int errorCode) { // We know this is called on the same thread as LiStartConnection() // which happens to be the main thread, so it's cool to interact @@ -67,7 +67,7 @@ void Session::clStageFailed(int stage, long errorCode) QCoreApplication::processEvents(QEventLoop::ExcludeUserInputEvents); } -void Session::clConnectionTerminated(long errorCode) +void Session::clConnectionTerminated(int errorCode) { // Display the termination dialog if this was not intended if (errorCode != 0) { @@ -76,7 +76,7 @@ void Session::clConnectionTerminated(long errorCode) } SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, - "Connection terminated: %ld", + "Connection terminated: %d", errorCode); // Push a quit event to the main loop diff --git a/app/streaming/session.h b/app/streaming/session.h index 4d977691..f09027b1 100644 --- a/app/streaming/session.h +++ b/app/streaming/session.h @@ -41,7 +41,7 @@ public: signals: void stageStarting(QString stage); - void stageFailed(QString stage, long errorCode); + void stageFailed(QString stage, int errorCode); void connectionStarted(); @@ -93,10 +93,10 @@ private: void clStageStarting(int stage); static - void clStageFailed(int stage, long errorCode); + void clStageFailed(int stage, int errorCode); static - void clConnectionTerminated(long errorCode); + void clConnectionTerminated(int errorCode); static void clLogMessage(const char* format, ...); diff --git a/moonlight-common-c/moonlight-common-c b/moonlight-common-c/moonlight-common-c index cfeb0ffd..2fc278da 160000 --- a/moonlight-common-c/moonlight-common-c +++ b/moonlight-common-c/moonlight-common-c @@ -1 +1 @@ -Subproject commit cfeb0ffd90992ee0fa4b6b4a179652e3e2786873 +Subproject commit 2fc278da00998d92cf1403f55c0bd11e2389bd41