[ATL] CImage: Follow-up to #5702 (5da3ed6)

Fix the return value of CImage::Detach. CORE-19008
This commit is contained in:
Katayama Hirofumi MZ 2023-09-20 00:04:45 +09:00
parent 5da3ed638b
commit 8d74bc4b46

View file

@ -65,7 +65,7 @@ public:
HBITMAP Detach() noexcept
{
m_hOldBitmap = m_hBitmap = NULL;
m_hOldBitmap = NULL;
m_nWidth = m_nHeight = m_nPitch = m_nBPP = 0;
m_pBits = NULL;