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
5a2cc941
Commit
5a2cc941
authored
Sep 28, 2010
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Sep 29, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Simplify the error handling in BITMAP_Load().
This fixes a memleak on an error path (Smatch).
parent
ef247562
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
cursoricon.c
dlls/user32/cursoricon.c
+2
-3
No files found.
dlls/user32/cursoricon.c
View file @
5a2cc941
...
...
@@ -2291,7 +2291,7 @@ static HBITMAP BITMAP_Load( HINSTANCE instance, LPCWSTR name,
if
(
bmfh
->
bfType
!=
0x4d42
/* 'BM' */
)
{
WARN
(
"Invalid/unsupported bitmap format!
\n
"
);
goto
end
_close
;
goto
end
;
}
if
(
bmfh
->
bfOffBits
)
offbits
=
bmfh
->
bfOffBits
-
sizeof
(
BITMAPFILEHEADER
);
}
...
...
@@ -2312,7 +2312,7 @@ static HBITMAP BITMAP_Load( HINSTANCE instance, LPCWSTR name,
if
(
bm_type
==
-
1
)
{
WARN
(
"Invalid bitmap format!
\n
"
);
goto
end
_close
;
goto
end
;
}
if
(
desiredx
!=
0
)
...
...
@@ -2371,7 +2371,6 @@ end:
if
(
screen_mem_dc
)
DeleteDC
(
screen_mem_dc
);
HeapFree
(
GetProcessHeap
(),
0
,
scaled_info
);
HeapFree
(
GetProcessHeap
(),
0
,
fix_info
);
end_close:
if
(
loadflags
&
LR_LOADFROMFILE
)
UnmapViewOfFile
(
ptr
);
return
hbitmap
;
...
...
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