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
781b451a
Commit
781b451a
authored
Feb 10, 2005
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Feb 10, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not forget to allocate internal OPENFILENAMEW structure for 16-bit
GetOpenFileName, initialize it by zeros for 16/A cases.
parent
c7e88e08
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
filedlg.c
dlls/commdlg/filedlg.c
+1
-1
filedlg16.c
dlls/commdlg/filedlg16.c
+2
-0
No files found.
dlls/commdlg/filedlg.c
View file @
781b451a
...
...
@@ -3456,7 +3456,7 @@ static BOOL CALLBACK FD32_Init(LPARAM lParam, PFD31_DATA lfs, DWORD data)
if
(
priv
->
ofnA
->
Flags
&
OFN_ENABLEHOOK
)
if
(
priv
->
ofnA
->
lpfnHook
)
lfs
->
hook
=
TRUE
;
lfs
->
ofnW
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
*
lfs
->
ofnW
));
lfs
->
ofnW
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
*
lfs
->
ofnW
));
FD31_MapOfnStructA
(
priv
->
ofnA
,
lfs
->
ofnW
,
lfs
->
open
);
}
...
...
dlls/commdlg/filedlg16.c
View file @
781b451a
...
...
@@ -170,6 +170,7 @@ static BOOL CALLBACK FD16_Init(LPARAM lParam, PFD31_DATA lfs, DWORD data)
if
(
priv
->
ofn16
->
lpfnHook
)
lfs
->
hook
=
TRUE
;
lfs
->
ofnW
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
*
lfs
->
ofnW
));
FD16_MapOfnStruct16
(
priv
->
ofn16
,
lfs
->
ofnW
,
lfs
->
open
);
if
(
!
FD16_GetTemplate
(
lfs
))
return
FALSE
;
...
...
@@ -280,6 +281,7 @@ static void CALLBACK FD16_Destroy(PFD31_DATA lfs)
GlobalFree16
(
priv
->
hGlobal16
);
}
FD31_FreeOfnW
(
lfs
->
ofnW
);
HeapFree
(
GetProcessHeap
(),
0
,
lfs
->
ofnW
);
}
}
...
...
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