#952 SciTE don't compile for x64 (windows)

Bug
closed-fixed
SciTE (625)
5
2010-06-02
2010-04-27
No

GWL_WNDPROC and GWL_USERDATA are not valid for x64. Use GWLP_WNDPROC and GWLP_USERDATA

If you look into winuser.h you will find:

/*
* Window field offsets for GetWindowLong()
*/
#define GWL_WNDPROC (-4)
...
#define GWL_USERDATA (-21)

#ifdef _WIN64

#undef GWL_WNDPROC
...
#undef GWL_USERDATA

#endif /* _WIN64 */

#define GWLP_WNDPROC (-4)
...
#define GWLP_USERDATA (-21)

The reason is the replace of SetSetWindowLongPtr SetWindowLong to make the code 32 / 64 bit compatible:
see: http://msdn.microsoft.com/en-us/library/ms644898

Discussion

  • Neil Hodgson

    Neil Hodgson - 2010-04-28
    • labels: --> SciTE
    • milestone: --> Bug
    • assigned_to: nobody --> nyamatongwe
    • status: open --> open-fixed
     
  • Neil Hodgson

    Neil Hodgson - 2010-04-28

    Committed fixes.

     
  • Neil Hodgson

    Neil Hodgson - 2010-06-02
    • status: open-fixed --> closed-fixed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks