mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 22:47:11 +00:00
[REACTOS] Fix a number of Get/SetWindowsLong*Ptr* issues and use GWLP_* instead of GWL_* where appropriate.
This commit is contained in:
parent
173971d947
commit
d281d14fd1
25 changed files with 118 additions and 118 deletions
|
@ -187,7 +187,7 @@ void OnInit(
|
|||
{
|
||||
// Store parameters
|
||||
|
||||
SetWindowLong(hDlg, GWL_USERDATA, (ULONG)pParam);
|
||||
SetWindowLongPtr(hDlg, GWLP_USERDATA, (ULONG_PTR)pParam);
|
||||
|
||||
// clear the target existence flag
|
||||
|
||||
|
@ -285,7 +285,7 @@ void OnTarget(
|
|||
//
|
||||
// get the current image info
|
||||
//
|
||||
param = (PCSAVE_PARAM)GetWindowLong(hDlg, GWL_USERDATA);
|
||||
param = (PCSAVE_PARAM)GetWindowLongPtr(hDlg, GWLP_USERDATA);
|
||||
|
||||
if (_stricmp(param->ImageName, buf) == 0) {
|
||||
|
||||
|
@ -461,7 +461,7 @@ DWORD OnOK(
|
|||
BOOL truncate;
|
||||
DWORD ret;
|
||||
|
||||
param = (PCSAVE_PARAM)GetWindowLong(hDlg, GWL_USERDATA);
|
||||
param = (PCSAVE_PARAM)GetWindowLongPtr(hDlg, GWLP_USERDATA);
|
||||
|
||||
if (!param) {
|
||||
return ERROR_INVALID_FUNCTION;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue