Fix for win64 build #572

pull vleschuk wants to merge 1 commits into bitcoin:master from vleschuk:master changing 1 files +2 −2
  1. vleschuk commented at 3:56 PM on October 6, 2011: contributor

    Hi, I was writing a script for automated cross-build (Linux -> win64) for bitcoin (https://github.com/delirium---/bqt-autobuild) and met some issues with building the client. One is solved in attached commit https://github.com/delirium---/bitcoin/commit/b95e6376d083dc904722c4b5ddd7954a3a44826d

    DWORD and DWORD_PTR have same size of 32bit systems but different on 64bit.

  2. Fix for 64bit build b95e6376d0
  3. gavinandresen commented at 4:39 PM on October 6, 2011: contributor

    According to the MSDN docs, it should be PDWORD_PTR, right? I'm looking at: http://msdn.microsoft.com/en-us/library/windows/desktop/ms683213(v=vs.85).aspx

  4. vleschuk commented at 7:03 PM on October 6, 2011: contributor

    Right, actually that the main thing:

    function gets pointers to DWORD_PTRs (PDWORD_PTR is DWORD_PTR *), and arguments are DWORDs and not DWORD_PTRs. On 32bit it is ok as sizeof(DWORD) == sizeof(DWORD_PTR), but on 64bit it is not ok. That is why I changed type of dwProcessAffinityMask and dwSystemAffinityMask from DWORD to DWORD_PTR. Do not be afraid of _PTR suffix, DWORD_PTR is not a pointer, but an unsigned integer and is really the same as DWORD on a 32bit platform.

  5. gavinandresen referenced this in commit e9b95e4f6c on Oct 6, 2011
  6. gavinandresen merged this on Oct 6, 2011
  7. gavinandresen closed this on Oct 6, 2011

  8. coblee referenced this in commit 352b0cf2df on Jul 17, 2012
  9. kallewoof referenced this in commit 34aa9faf3a on Oct 4, 2019
  10. KolbyML referenced this in commit bc86927231 on Sep 4, 2020
  11. rajarshimaitra referenced this in commit 1de53b46f5 on Aug 5, 2021
  12. bitcoin locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-05-20 06:56 UTC