Skip to content

Commit

Permalink
Indicator: Returns indicator value on CopyBuffer() 4806 error
Browse files Browse the repository at this point in the history
  • Loading branch information
kenorb committed Nov 6, 2021
1 parent afeca35 commit 8774375
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Indicator.define.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
return EMPTY_VALUE; \
} \
if (::CopyBuffer(_handle, _mode, _shift, 1, _res) < 0) { \
return EMPTY_VALUE; \
return ArraySize(_res) > 0 ? _res[0] : EMPTY_VALUE; \
} \
return _res[0];

Expand Down

0 comments on commit 8774375

Please sign in to comment.