summaryrefslogtreecommitdiff
path: root/protocols/Steam/src/steam_ws.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Steam/src/steam_ws.cpp')
-rw-r--r--protocols/Steam/src/steam_ws.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/Steam/src/steam_ws.cpp b/protocols/Steam/src/steam_ws.cpp
index 93e63f5606..585d995e24 100644
--- a/protocols/Steam/src/steam_ws.cpp
+++ b/protocols/Steam/src/steam_ws.cpp
@@ -221,7 +221,7 @@ void CSteamProto::ProcessServiceResponse(const uint8_t *buf, size_t cbLen, const
*p1 = 0;
if (auto *pMethod = protobuf_c_service_descriptor_get_method_by_name(it->second, p)) {
- auto *pDescr = pMethod->output;
+ auto *pDescr = (hdr.jobid_target == -1) ? pMethod->input : pMethod->output;
if (auto *pMessage = protobuf_c_message_unpack(pDescr, 0, cbLen, buf)) {
debugLogA("Processing service message: %s\n%s", hdr.target_job_name, protobuf_c_text_to_string(*pMessage).c_str());