diff options
Diffstat (limited to '')
-rw-r--r-- | src/dutil/thmutil.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/dutil/thmutil.cpp b/src/dutil/thmutil.cpp index 9b9bf15e..d87e997d 100644 --- a/src/dutil/thmutil.cpp +++ b/src/dutil/thmutil.cpp | |||
@@ -693,7 +693,7 @@ DAPI_(HRESULT) ThemeCreateParentWindow( | |||
693 | } | 693 | } |
694 | 694 | ||
695 | LExit: | 695 | LExit: |
696 | MemFree(pMonitorContext); | 696 | ReleaseMem(pMonitorContext); |
697 | 697 | ||
698 | return hr; | 698 | return hr; |
699 | } | 699 | } |
@@ -1514,7 +1514,7 @@ LExit: | |||
1514 | DAPI_(HRESULT) ThemeGetTextControl( | 1514 | DAPI_(HRESULT) ThemeGetTextControl( |
1515 | __in const THEME* pTheme, | 1515 | __in const THEME* pTheme, |
1516 | __in DWORD dwControl, | 1516 | __in DWORD dwControl, |
1517 | __out_z LPWSTR* psczText | 1517 | __inout_z LPWSTR* psczText |
1518 | ) | 1518 | ) |
1519 | { | 1519 | { |
1520 | HRESULT hr = S_OK; | 1520 | HRESULT hr = S_OK; |
@@ -1729,6 +1729,7 @@ static HRESULT ParseImage( | |||
1729 | LPWSTR sczImageFile = NULL; | 1729 | LPWSTR sczImageFile = NULL; |
1730 | int iResourceId = 0; | 1730 | int iResourceId = 0; |
1731 | Gdiplus::Bitmap* pBitmap = NULL; | 1731 | Gdiplus::Bitmap* pBitmap = NULL; |
1732 | *phImage = NULL; | ||
1732 | 1733 | ||
1733 | hr = XmlGetAttribute(pElement, L"ImageResource", &bstr); | 1734 | hr = XmlGetAttribute(pElement, L"ImageResource", &bstr); |
1734 | ThmExitOnFailure(hr, "Failed to get image resource attribute."); | 1735 | ThmExitOnFailure(hr, "Failed to get image resource attribute."); |
@@ -1801,6 +1802,7 @@ static HRESULT ParseIcon( | |||
1801 | BSTR bstr = NULL; | 1802 | BSTR bstr = NULL; |
1802 | LPWSTR sczImageFile = NULL; | 1803 | LPWSTR sczImageFile = NULL; |
1803 | int iResourceId = 0; | 1804 | int iResourceId = 0; |
1805 | *phIcon = NULL; | ||
1804 | 1806 | ||
1805 | hr = XmlGetAttribute(pElement, L"IconResource", &bstr); | 1807 | hr = XmlGetAttribute(pElement, L"IconResource", &bstr); |
1806 | ThmExitOnFailure(hr, "Failed to get icon resource attribute."); | 1808 | ThmExitOnFailure(hr, "Failed to get icon resource attribute."); |
@@ -4720,7 +4722,7 @@ static HRESULT ShowControl( | |||
4720 | 4722 | ||
4721 | hr = S_OK; | 4723 | hr = S_OK; |
4722 | 4724 | ||
4723 | Button_SetCheck(hWnd, (!sczText && !pControl->sczValue) || CSTR_EQUAL == ::CompareStringW(LOCALE_INVARIANT, 0, sczText, -1, pControl->sczValue, -1)); | 4725 | Button_SetCheck(hWnd, (!sczText && !pControl->sczValue) || (sczText && CSTR_EQUAL == ::CompareStringW(LOCALE_INVARIANT, 0, sczText, -1, pControl->sczValue, -1))); |
4724 | } | 4726 | } |
4725 | } | 4727 | } |
4726 | 4728 | ||