]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/colordlg.cpp
Fixed wxPalette memory leak when loading BMP files
[wxWidgets.git] / src / msw / colordlg.cpp
index d9cbc6a244f7a5b843b89793ade826daadb1bb79..78a01e7dde036d1e6e0c0d903f85df44d70b1ab2 100644 (file)
@@ -89,7 +89,7 @@ int wxColourDialog::ShowModal(void)
       custColours[i] = RGB(m_colourData.custColours[i].Red(), m_colourData.custColours[i].Green(), m_colourData.custColours[i].Blue());
 
     chooseColorStruct.lStructSize = sizeof(CHOOSECOLOR);
-    chooseColorStruct.hwndOwner = (HWND) (m_dialogParent ? (HWND) m_dialogParent->GetHWND() : NULL);
+    chooseColorStruct.hwndOwner = (HWND) (m_dialogParent ? (HWND) m_dialogParent->GetHWND() : (HWND) NULL);
     chooseColorStruct.rgbResult = RGB(m_colourData.dataColour.Red(), m_colourData.dataColour.Green(), m_colourData.dataColour.Blue());
     chooseColorStruct.lpCustColors = custColours;