mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-27 19:25:36 +00:00
- two small fixes (freeing resources on error)
svn path=/trunk/; revision=46476
This commit is contained in:
@@ -96,7 +96,16 @@ LRESULT CALLBACK RosImageProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam
|
||||
// build new bitmap
|
||||
GetObject(pImgInfo->hBitmap, sizeof(BITMAP), &bitmap);
|
||||
dc = CreateCompatibleDC(GetDC(NULL));
|
||||
if (dc == NULL)
|
||||
{
|
||||
break;
|
||||
}
|
||||
sdc = CreateCompatibleDC(dc);
|
||||
if (sdc == NULL)
|
||||
{
|
||||
DeleteDC(dc);
|
||||
break;
|
||||
}
|
||||
ncm.cbSize = sizeof(NONCLIENTMETRICS);
|
||||
SystemParametersInfo(SPI_GETNONCLIENTMETRICS, sizeof(NONCLIENTMETRICS), &ncm, 0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user