Commit 667d610
authored
[API] Fix nHasDragDropPayload SIGSEGV when payload doesn't exist (#155)
`getDragDropPayload()` functions should simply return null when
the payload doesn't exist.
Currently, DearImGui will return NULL from `ImGui::GetDragDropPayload()`
when the payload does not exist. This causes a null dereference
since the nHasDragDropPayload function performs no NULL check1 parent 4f06b4e commit 667d610
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5118 | 5118 | | |
5119 | 5119 | | |
5120 | 5120 | | |
5121 | | - | |
| 5121 | + | |
| 5122 | + | |
5122 | 5123 | | |
5123 | 5124 | | |
5124 | 5125 | | |
5125 | | - | |
| 5126 | + | |
| 5127 | + | |
5126 | 5128 | | |
5127 | 5129 | | |
5128 | 5130 | | |
| |||
0 commit comments