Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
2d106a57
Commit
2d106a57
authored
Nov 13, 2002
by
Mike McCormack
Committed by
Alexandre Julliard
Nov 13, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a few GDI memory leaks.
parent
947a74f4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
6 deletions
+9
-6
path.c
dlls/shlwapi/path.c
+5
-4
cursoricon.c
windows/cursoricon.c
+2
-1
nonclient.c
windows/nonclient.c
+2
-1
No files found.
dlls/shlwapi/path.c
View file @
2d106a57
...
...
@@ -2773,13 +2773,13 @@ BOOL WINAPI PathCompactPathW(HDC hDC, LPWSTR lpszPath, UINT dx)
strcpyW
(
sPath
,
szEllipses
);
strcpyW
(
sPath
+
3
,
buff
);
}
if
(
hdc
)
ReleaseDC
(
0
,
hdc
);
return
TRUE
;
bRet
=
TRUE
;
goto
end
;
}
strcpyW
(
lpszPath
,
szEllipses
);
strcpyW
(
lpszPath
+
3
,
buff
);
return
FALSE
;
bRet
=
FALSE
;
goto
end
;
}
/* Trim the path by adding ellipses to the end, e.g:
...
...
@@ -2819,6 +2819,7 @@ BOOL WINAPI PathCompactPathW(HDC hDC, LPWSTR lpszPath, UINT dx)
}
}
end:
if
(
hdc
)
ReleaseDC
(
0
,
hdc
);
...
...
windows/cursoricon.c
View file @
2d106a57
...
...
@@ -1725,7 +1725,7 @@ BOOL WINAPI DrawIconEx( HDC hdc, INT x0, INT y0, HICON hIcon,
HBRUSH
hbr
,
UINT
flags
)
{
CURSORICONINFO
*
ptr
=
(
CURSORICONINFO
*
)
GlobalLock16
(
HICON_16
(
hIcon
));
HDC
hDC_off
=
0
,
hMemDC
=
CreateCompatibleDC
(
hdc
)
;
HDC
hDC_off
=
0
,
hMemDC
;
BOOL
result
=
FALSE
,
DoOffscreen
;
HBITMAP
hB_off
=
0
,
hOld
=
0
;
...
...
@@ -1734,6 +1734,7 @@ BOOL WINAPI DrawIconEx( HDC hdc, INT x0, INT y0, HICON hIcon,
hdc
,
x0
,
y0
,
hIcon
,
cxWidth
,
cyWidth
,
istep
,
hbr
,
flags
);
hMemDC
=
CreateCompatibleDC
(
hdc
);
if
(
istep
)
FIXME_
(
icon
)(
"Ignoring istep=%d
\n
"
,
istep
);
if
(
flags
&
DI_COMPAT
)
...
...
windows/nonclient.c
View file @
2d106a57
...
...
@@ -2208,7 +2208,7 @@ LONG NC_HandleSysCommand( HWND hwnd, WPARAM wParam, LPARAM lParam )
BOOL
NC_DrawGrayButton
(
HDC
hdc
,
int
x
,
int
y
)
{
HBITMAP
hMaskBmp
;
HDC
hdcMask
=
CreateCompatibleDC
(
0
)
;
HDC
hdcMask
;
HBRUSH
hOldBrush
;
hMaskBmp
=
CreateBitmap
(
12
,
10
,
1
,
1
,
lpGrayMask
);
...
...
@@ -2216,6 +2216,7 @@ BOOL NC_DrawGrayButton(HDC hdc, int x, int y)
if
(
hMaskBmp
==
0
)
return
FALSE
;
hdcMask
=
CreateCompatibleDC
(
0
);
SelectObject
(
hdcMask
,
hMaskBmp
);
/* Draw the grayed bitmap using the mask */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment