diff --git a/reactos/dll/shellext/netshell/lanconnectui.cpp b/reactos/dll/shellext/netshell/lanconnectui.cpp index 2d9b0734a47..b5ef94bbc5a 100644 --- a/reactos/dll/shellext/netshell/lanconnectui.cpp +++ b/reactos/dll/shellext/netshell/lanconnectui.cpp @@ -590,7 +590,7 @@ CNetConnectionPropertyUi::AddPages( if (FAILED(hr)) return hr; - hProp = InitializePropertySheetPage(MAKEINTRESOURCEW(IDD_NETPROPERTIES), LANPropertiesUIDlg, (LPARAM)this, m_pProperties->pszwName); + hProp = InitializePropertySheetPage(MAKEINTRESOURCEW(IDD_NETPROPERTIES), LANPropertiesUIDlg, reinterpret_cast(this), NULL); if (hProp) { ret = (*pfnAddPage)(hProp, lParam);