[SHELL32]
[reactos.git] / reactos / dll / win32 / shell32 / openwithmenu.cpp
index 6648a78..02e5b9f 100644 (file)
@@ -297,9 +297,9 @@ COpenWithList::SApp *COpenWithList::AddInternal(LPCWSTR pwszFilename)
 
     /* Create new item */
     if (!m_pApp)
-        m_pApp = (SApp*)HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(m_pApp[0]));
+        m_pApp = static_cast<SApp *>(HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(m_pApp[0])));
     else
-        m_pApp = (SApp*)HeapReAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, m_pApp, (m_cApp + 1)*sizeof(m_pApp[0]));
+        m_pApp = static_cast<SApp *>(HeapReAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, m_pApp, (m_cApp + 1)*sizeof(m_pApp[0])));
     if (!m_pApp)
     {
         ERR("Allocation failed\n");
@@ -989,13 +989,13 @@ VOID COpenWithDialog::Accept()
 
 INT_PTR CALLBACK COpenWithDialog::DialogProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
 {
-    COpenWithDialog *pThis = (COpenWithDialog*)GetWindowLongPtr(hwndDlg, DWLP_USER);
+    COpenWithDialog *pThis = reinterpret_cast<COpenWithDialog *>(GetWindowLongPtr(hwndDlg, DWLP_USER));
 
     switch(uMsg)
     {
         case WM_INITDIALOG:
         {
-            COpenWithDialog *pThis = (COpenWithDialog*)lParam;
+            COpenWithDialog *pThis = reinterpret_cast<COpenWithDialog *>(lParam);
 
             pThis->Init(hwndDlg);
             return TRUE;