https://github.com/shader-slang/slang
Revision 4aab9cc79e7b0496ec447bad67225dc1c3486bef authored by Tim Foley on 08 March 2019, 16:43:49 UTC, committed by GitHub on 08 March 2019, 16:43:49 UTC
Fixes issue #874

The problem here was that a pointer was being cast to `LONG` so that it could be used with the `SetWindowLongPtr` API, but that API actually expects a `LONG_PTR`. Since `LONG` is a 32-bit type on 64-bit Windows, the pointer we stored was getting truncated, leading to crashes.

I'm kind of surprised this wasn't biting more of our applications (e.g., the render tests).
1 parent 74a3405
History
Tip revision: 4aab9cc79e7b0496ec447bad67225dc1c3486bef authored by Tim Foley on 08 March 2019, 16:43:49 UTC
Fix a 64-bit issue in our Windows UI code (#887)
Tip revision: 4aab9cc
File Mode Size
docs
examples
external
source
tests
tools
.editorconfig -rw-r--r-- 937 bytes
.gitattributes -rw-r--r-- 95 bytes
.gitignore -rw-r--r-- 407 bytes
.gitmodules -rw-r--r-- 406 bytes
.travis.yml -rw-r--r-- 1.7 KB
CODE_OF_CONDUCT.md -rw-r--r-- 3.1 KB
LICENSE -rw-r--r-- 1.1 KB
Makefile -rw-r--r-- 6.0 KB
README.md -rw-r--r-- 6.7 KB
appveyor.yml -rw-r--r-- 3.7 KB
premake5.lua -rw-r--r-- 25.3 KB
slang-com-helper.h -rw-r--r-- 4.8 KB
slang-com-ptr.h -rw-r--r-- 4.8 KB
slang.h -rw-r--r-- 85.4 KB
slang.sln -rw-r--r-- 9.8 KB
test.bat -rw-r--r-- 1.4 KB
travis_build.sh -rw-r--r-- 304 bytes
travis_test.sh -rw-r--r-- 435 bytes

README.md

back to top