diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 03d5b6b..5086ca0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -38,14 +38,15 @@ jobs: - name: Add msbuild to PATH uses: microsoft/setup-msbuild@v2 with: - vs-version: 16.4 + msbuild-architecture: x64 - name: Make build dir run: mkdir build working-directory: wireshark - name: Configure Wireshark run: cmake -A x64 .. -DBUILD_wireshark=OFF working-directory: wireshark/build - - run: cmake --build . --config RelWithDebInfo --target epan + - name: Build Wireshark + run: cmake --build . --config RelWithDebInfo --target epan working-directory: wireshark/build - name: Configure dissector (Debug) if: "!startsWith(github.ref, 'refs/tags/') || contains(github.ref, 'beta')" diff --git a/mc_dissector.c b/mc_dissector.c index ea3cef8..2bf7b96 100644 --- a/mc_dissector.c +++ b/mc_dissector.c @@ -24,7 +24,7 @@ gchar *pref_protocol_data_dir; module_t *pref_mcje = NULL; gchar *pref_ignore_packets_je = "c:map_chunk"; gchar *pref_secret_key = ""; -gboolean pref_do_nbt_decode = false; +bool pref_do_nbt_decode = false; module_t *pref_mcbe = NULL; diff --git a/mc_dissector.h b/mc_dissector.h index dfac22a..c841cf2 100644 --- a/mc_dissector.h +++ b/mc_dissector.h @@ -30,7 +30,7 @@ extern int proto_mcbe; extern module_t *pref_mcje; extern gchar *pref_ignore_packets_je; extern gchar *pref_secret_key; -extern gboolean pref_do_nbt_decode; +extern bool pref_do_nbt_decode; extern module_t *pref_mcbe; diff --git a/protocol/protocol_data.c b/protocol/protocol_data.c index 61e98aa..eb09c37 100644 --- a/protocol/protocol_data.c +++ b/protocol/protocol_data.c @@ -13,7 +13,7 @@ gint read_var_int(tvbuff_t *tvb, gint offset, gint *result) { do { if (p == 5) return INVALID_DATA; - read = tvb_get_guint8(tvb, offset + p); + read = tvb_get_uint8(tvb, offset + p); *result |= (read & 0x7F) << (7 * p++); } while ((read & 0x80) != 0); return p; @@ -26,7 +26,7 @@ gint read_var_int_with_limit(tvbuff_t *tvb, gint offset, gint max_length, gint * do { if (p == 5 || p >= max_length) return INVALID_DATA; - read = tvb_get_guint8(tvb, offset + p); + read = tvb_get_uint8(tvb, offset + p); *result |= (read & 0x7F) << (7 * p++); } while ((read & 0x80) != 0); return p; @@ -39,7 +39,7 @@ gint read_var_long(tvbuff_t *tvb, gint offset, gint64 *result) { do { if (p == 10) return INVALID_DATA; - read = tvb_get_guint8(tvb, offset + p); + read = tvb_get_uint8(tvb, offset + p); *result |= (read & 0x7F) << (7 * p++); } while ((read & 0x80) != 0); return p;