Skip to content

Commit f3ccebe

Browse files
committed
BUG: Cannot decode switch label value
1 parent 4fef5a5 commit f3ccebe

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

WinIoCtlDecoder/WinIoCtlDecoder/WinIoCtlDecoder.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,10 +135,10 @@ int idaapi plugin_callback(
135135
{
136136
case hxe_right_click:
137137
{
138-
// If the current item is non zero const, then add the menu item
138+
// If the current item is non zero number, then add the menu item
139139
auto window = va_arg(va, vdui_t*);
140-
if (window->item.is_citem()
141-
&& window->item.e->is_non_zero_const())
140+
const auto number_obj = window->get_number();
141+
if (number_obj && number_obj->_value)
142142
{
143143
add_custom_viewer_popup_item(
144144
window->ct,

plugins/WinIoCtlDecoder.plw

512 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)