NULL ); /* sent to WM_CREATE */
SetWindowLong( ipcwindow, GWL_WNDPROC, (LONG)WMCOPYWNDPROC );
- SetWindowLong( ipcwindow, GWL_USERDATA, (LONG)p_this );
+ SetWindowLongPtr( ipcwindow, GWL_USERDATA, (LONG_PTR)p_this );
/* Signal the creation of the thread and events queue */
vlc_thread_ready( p_this );
vlc_object_t *p_this;
playlist_t *p_playlist;
- p_this = (vlc_object_t *)GetWindowLong( hwnd, GWL_USERDATA );
+ p_this = (vlc_object_t *)GetWindowLongPtr( hwnd, GWL_USERDATA );
if( !p_this ) return 0;