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
39d013c6
Commit
39d013c6
authored
Apr 11, 2002
by
Uwe Bonnes
Committed by
Alexandre Julliard
Apr 11, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MCIWndCreateA: check for NULL filename.
parent
83d6efb7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
mciwnd.c
dlls/msvideo/mciwnd.c
+5
-2
No files found.
dlls/msvideo/mciwnd.c
View file @
39d013c6
...
...
@@ -90,7 +90,10 @@ HWND VFWAPIV MCIWndCreateA(HWND hwndParent, HINSTANCE hInstance,
if
(
!
mwi
)
return
0
;
mwi
->
dwStyle
=
dwStyle
;
mwi
->
lpName
=
strcpy
(
HeapAlloc
(
GetProcessHeap
(),
0
,
strlen
(
szFile
)
+
1
),
szFile
);
if
(
szFile
)
mwi
->
lpName
=
strcpy
(
HeapAlloc
(
GetProcessHeap
(),
0
,
strlen
(
szFile
)
+
1
),
szFile
);
else
mwi
->
lpName
=
NULL
;
mwi
->
uTimer
=
0
;
wndStyle
=
((
hwndParent
)
?
(
WS_CHILD
|
WS_BORDER
)
:
WS_OVERLAPPEDWINDOW
)
|
...
...
@@ -102,7 +105,7 @@ HWND VFWAPIV MCIWndCreateA(HWND hwndParent, HINSTANCE hInstance,
hwndParent
,
(
HMENU
)
0
,
hInstance
,
mwi
))
return
mwi
->
hWnd
;
HeapFree
(
GetProcessHeap
(),
0
,
mwi
->
lpName
);
if
(
mwi
->
lpName
)
HeapFree
(
GetProcessHeap
(),
0
,
mwi
->
lpName
);
HeapFree
(
GetProcessHeap
(),
0
,
mwi
);
return
0
;
}
...
...
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