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
ca3b8741
Commit
ca3b8741
authored
May 10, 2008
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
May 12, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Fix calling convention of LPFNOFN, don't use static buffers.
parent
939c7f9c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
dialogs.c
dlls/shell32/dialogs.c
+4
-4
No files found.
dlls/shell32/dialogs.c
View file @
ca3b8741
...
@@ -49,7 +49,7 @@ typedef struct
...
@@ -49,7 +49,7 @@ typedef struct
UINT
uFlags
;
UINT
uFlags
;
}
RUNFILEDLGPARAMS
;
}
RUNFILEDLGPARAMS
;
typedef
BOOL
(
*
LPFNOFN
)
(
OPENFILENAMEA
*
)
;
typedef
BOOL
(
*
WINAPI
LPFNOFN
)
(
OPENFILENAMEA
*
)
;
WINE_DEFAULT_DEBUG_CHANNEL
(
shell
);
WINE_DEFAULT_DEBUG_CHANNEL
(
shell
);
static
INT_PTR
CALLBACK
RunDlgProc
(
HWND
,
UINT
,
WPARAM
,
LPARAM
)
;
static
INT_PTR
CALLBACK
RunDlgProc
(
HWND
,
UINT
,
WPARAM
,
LPARAM
)
;
...
@@ -178,8 +178,8 @@ static INT_PTR CALLBACK RunDlgProc (HWND hwnd, UINT message, WPARAM wParam, LPAR
...
@@ -178,8 +178,8 @@ static INT_PTR CALLBACK RunDlgProc (HWND hwnd, UINT message, WPARAM wParam, LPAR
{
{
HMODULE
hComdlg
=
NULL
;
HMODULE
hComdlg
=
NULL
;
LPFNOFN
ofnProc
=
NULL
;
LPFNOFN
ofnProc
=
NULL
;
static
char
szFName
[
1024
]
=
""
,
szFileTitle
[
256
]
=
""
,
szInitDir
[
768
]
=
""
;
char
szFName
[
1024
]
=
""
,
szFileTitle
[
256
]
=
""
,
szInitDir
[
768
]
=
""
;
static
OPENFILENAMEA
ofn
=
OPENFILENAMEA
ofn
=
{
{
sizeof
(
OPENFILENAMEA
),
sizeof
(
OPENFILENAMEA
),
NULL
,
NULL
,
...
@@ -211,7 +211,7 @@ static INT_PTR CALLBACK RunDlgProc (HWND hwnd, UINT message, WPARAM wParam, LPAR
...
@@ -211,7 +211,7 @@ static INT_PTR CALLBACK RunDlgProc (HWND hwnd, UINT message, WPARAM wParam, LPAR
return
TRUE
;
return
TRUE
;
}
}
if
(
(
LPFNOFN
)
NULL
==
(
ofnProc
=
(
LPFNOFN
)
GetProcAddress
(
hComdlg
,
"GetOpenFileNameA"
)))
if
(
NULL
==
(
ofnProc
=
(
LPFNOFN
)
GetProcAddress
(
hComdlg
,
"GetOpenFileNameA"
)))
{
{
MessageBoxA
(
hwnd
,
"Unable to display dialog box (GetProcAddress) !"
,
"Nix"
,
MB_OK
|
MB_ICONEXCLAMATION
)
;
MessageBoxA
(
hwnd
,
"Unable to display dialog box (GetProcAddress) !"
,
"Nix"
,
MB_OK
|
MB_ICONEXCLAMATION
)
;
return
TRUE
;
return
TRUE
;
...
...
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