CxxTest/cxxtest

--gui=Win32Gui fails on 64 bit Windows

mcsmit opened this issue · 1 comments

In Win32Gui.h the following calls are used:
GetWindowLong(window, GWL_USERDATA)
SetWindowLong(window, GWL_USERDATA, (LONG)create->lpCreateParams)
With those calls the gui can not be used on a 64 bit platform. I modified the calls in:
GetWindowLongPtr(window, GWLP_USERDATA)
SetWindowLongPtr(window, GWLP_USERDATA, (LONG_PTR)create->lpCreateParams)
and then the gui can be used both in 32 and 64 bit Windows. Is it a smart idea to add this change to the library?

Thanks, this seems to work.