On Wed Jul 10 07:48:16 2024 +0000, Zhiyi Zhang wrote:
If you check str for NULL before get_buffer() then you don't need to call free_buffer().
If I move the `if` statement before the `ptr` assignment then NULL lParam won't be passed through (which doesn't match direct winproc call behavior)