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
858f0878
Commit
858f0878
authored
Sep 09, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Use explicit prototypes for function pointers.
parent
bea2e15c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
comm.c
dlls/kernel32/comm.c
+6
-6
No files found.
dlls/kernel32/comm.c
View file @
858f0878
...
@@ -1237,7 +1237,7 @@ BOOL WINAPI CommConfigDialogW(
...
@@ -1237,7 +1237,7 @@ BOOL WINAPI CommConfigDialogW(
HWND
hWnd
,
/* [in] parent window for the dialog */
HWND
hWnd
,
/* [in] parent window for the dialog */
LPCOMMCONFIG
lpCommConfig
)
/* [out] pointer to struct to fill */
LPCOMMCONFIG
lpCommConfig
)
/* [out] pointer to struct to fill */
{
{
FARPROC
pCommConfigDialog
;
DWORD
(
WINAPI
*
pCommConfigDialog
)(
LPCWSTR
,
HWND
,
LPCOMMCONFIG
)
;
HMODULE
hConfigModule
;
HMODULE
hConfigModule
;
DWORD
res
=
ERROR_INVALID_PARAMETER
;
DWORD
res
=
ERROR_INVALID_PARAMETER
;
...
@@ -1245,7 +1245,7 @@ BOOL WINAPI CommConfigDialogW(
...
@@ -1245,7 +1245,7 @@ BOOL WINAPI CommConfigDialogW(
hConfigModule
=
LoadLibraryW
(
lpszSerialUI
);
hConfigModule
=
LoadLibraryW
(
lpszSerialUI
);
if
(
hConfigModule
)
{
if
(
hConfigModule
)
{
pCommConfigDialog
=
GetProcAddress
(
hConfigModule
,
"drvCommConfigDialogW"
);
pCommConfigDialog
=
(
void
*
)
GetProcAddress
(
hConfigModule
,
"drvCommConfigDialogW"
);
if
(
pCommConfigDialog
)
{
if
(
pCommConfigDialog
)
{
res
=
pCommConfigDialog
(
lpszDevice
,
hWnd
,
lpCommConfig
);
res
=
pCommConfigDialog
(
lpszDevice
,
hWnd
,
lpCommConfig
);
}
}
...
@@ -1333,7 +1333,7 @@ BOOL WINAPI SetCommConfig(
...
@@ -1333,7 +1333,7 @@ BOOL WINAPI SetCommConfig(
*/
*/
BOOL
WINAPI
SetDefaultCommConfigW
(
LPCWSTR
lpszDevice
,
LPCOMMCONFIG
lpCommConfig
,
DWORD
dwSize
)
BOOL
WINAPI
SetDefaultCommConfigW
(
LPCWSTR
lpszDevice
,
LPCOMMCONFIG
lpCommConfig
,
DWORD
dwSize
)
{
{
FARPROC
lpfnSetDefaultCommConfig
;
BOOL
(
WINAPI
*
lpfnSetDefaultCommConfig
)(
LPCWSTR
,
LPCOMMCONFIG
,
DWORD
)
;
HMODULE
hConfigModule
;
HMODULE
hConfigModule
;
BOOL
r
=
FALSE
;
BOOL
r
=
FALSE
;
...
@@ -1343,7 +1343,7 @@ BOOL WINAPI SetDefaultCommConfigW(LPCWSTR lpszDevice, LPCOMMCONFIG lpCommConfig,
...
@@ -1343,7 +1343,7 @@ BOOL WINAPI SetDefaultCommConfigW(LPCWSTR lpszDevice, LPCOMMCONFIG lpCommConfig,
if
(
!
hConfigModule
)
if
(
!
hConfigModule
)
return
r
;
return
r
;
lpfnSetDefaultCommConfig
=
GetProcAddress
(
hConfigModule
,
"drvSetDefaultCommConfigW"
);
lpfnSetDefaultCommConfig
=
(
void
*
)
GetProcAddress
(
hConfigModule
,
"drvSetDefaultCommConfigW"
);
if
(
lpfnSetDefaultCommConfig
)
if
(
lpfnSetDefaultCommConfig
)
r
=
lpfnSetDefaultCommConfig
(
lpszDevice
,
lpCommConfig
,
dwSize
);
r
=
lpfnSetDefaultCommConfig
(
lpszDevice
,
lpCommConfig
,
dwSize
);
...
@@ -1398,7 +1398,7 @@ BOOL WINAPI GetDefaultCommConfigW(
...
@@ -1398,7 +1398,7 @@ BOOL WINAPI GetDefaultCommConfigW(
afterwards the number of bytes copied to the buffer or
afterwards the number of bytes copied to the buffer or
the needed size of the buffer. */
the needed size of the buffer. */
{
{
FARPROC
pGetDefaultCommConfig
;
DWORD
(
WINAPI
*
pGetDefaultCommConfig
)(
LPCWSTR
,
LPCOMMCONFIG
,
LPDWORD
)
;
HMODULE
hConfigModule
;
HMODULE
hConfigModule
;
DWORD
res
=
ERROR_INVALID_PARAMETER
;
DWORD
res
=
ERROR_INVALID_PARAMETER
;
...
@@ -1406,7 +1406,7 @@ BOOL WINAPI GetDefaultCommConfigW(
...
@@ -1406,7 +1406,7 @@ BOOL WINAPI GetDefaultCommConfigW(
hConfigModule
=
LoadLibraryW
(
lpszSerialUI
);
hConfigModule
=
LoadLibraryW
(
lpszSerialUI
);
if
(
hConfigModule
)
{
if
(
hConfigModule
)
{
pGetDefaultCommConfig
=
GetProcAddress
(
hConfigModule
,
"drvGetDefaultCommConfigW"
);
pGetDefaultCommConfig
=
(
void
*
)
GetProcAddress
(
hConfigModule
,
"drvGetDefaultCommConfigW"
);
if
(
pGetDefaultCommConfig
)
{
if
(
pGetDefaultCommConfig
)
{
res
=
pGetDefaultCommConfig
(
lpszName
,
lpCC
,
lpdwSize
);
res
=
pGetDefaultCommConfig
(
lpszName
,
lpCC
,
lpdwSize
);
}
}
...
...
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