diff options
author | David Ostrovsky <david@ostrovsky.org> | 2015-01-08 00:08:35 +0100 |
---|---|---|
committer | David Ostrovsky <david@ostrovsky.org> | 2015-01-10 21:36:33 +0000 |
commit | 28deec717c40e04c41f66b094fe2c1e969241525 (patch) | |
tree | 4d71a233774f03b32effa20ebcb8875acb0eebfa /uui | |
parent | 10d67638a0692a1b2b3c485eb4c8a4261a46e4f3 (diff) |
Fix user data pointer setting on x86_64 platform on windows
Using 0 as index offset to set user data in window handle,
is failing on x64 platform with:
ERROR_INVALID_INDEX 1413 (0x585)
To find it out GetLastError() can be used:
SetLastError(0);
LONG_PTR salFrameBack = SetWindowLongPtrW(hWnd, 0, (LONG_PTR)pFrame);
DWORD status = GetLastError();
Switching to documented GWLP_USERDATA instead, solved the problem.
Change-Id: I496ed2915e44309eaaaa4b576dca30b0051bdbfd
Reviewed-on: https://gerrit.libreoffice.org/13807
Reviewed-by: David Ostrovsky <david@ostrovsky.org>
Tested-by: David Ostrovsky <david@ostrovsky.org>
Diffstat (limited to 'uui')
0 files changed, 0 insertions, 0 deletions