[PSDK][REACTOS] Fix definitions and usage of DWLP_MSGRESULT, DWLP_DLGPROC, and DWLP_USER
[reactos.git] / modules / rosapps / applications / screensavers / matrix / matrix.c
index 4cb385b..eff7392 100644 (file)
@@ -288,12 +288,12 @@ void DestroyMatrix(MATRIX *matrix)
 
 MATRIX *GetMatrix(HWND hwnd)
 {
-       return (MATRIX *)GetWindowLong(hwnd, 0);
+       return (MATRIX *)GetWindowLongPtr(hwnd, GWLP_USERDATA);
 }
 
 void SetMatrix(HWND hwnd, MATRIX *matrix)
 {
-       SetWindowLong(hwnd, 0, (LONG)matrix);
+       SetWindowLongPtr(hwnd, GWLP_USERDATA, (LONG_PTR)matrix);
 }
 
 //