Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
491ef8f3
Commit
491ef8f3
authored
Feb 17, 2022
by
Eric Pouech
Committed by
Alexandre Julliard
Feb 17, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
serialui: Enable compilation with long types.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
c2383fcf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
9 deletions
+8
-9
Makefile.in
dlls/serialui/Makefile.in
+0
-1
confdlg.c
dlls/serialui/confdlg.c
+8
-8
No files found.
dlls/serialui/Makefile.in
View file @
491ef8f3
EXTRADEFS
=
-DWINE_NO_LONG_TYPES
MODULE
=
serialui.dll
IMPORTS
=
user32 advapi32
...
...
dlls/serialui/confdlg.c
View file @
491ef8f3
...
...
@@ -61,7 +61,7 @@ static HMODULE SERIALUI_hModule;
BOOL
WINAPI
DllMain
(
HINSTANCE
hinstDLL
,
DWORD
fdwReason
,
LPVOID
lpvReserved
)
{
TRACE
(
"%p,%x,%p
\n
"
,
hinstDLL
,
fdwReason
,
lpvReserved
);
TRACE
(
"%p,%
l
x,%p
\n
"
,
hinstDLL
,
fdwReason
,
lpvReserved
);
switch
(
fdwReason
)
{
case
DLL_PROCESS_ATTACH
:
...
...
@@ -86,7 +86,7 @@ typedef LPVOID LPDEVICE_INFO;
typedef
LPVOID
LPFNADDPROPSHEETPAGE
;
BOOL
WINAPI
EnumPropPages
(
LPDEVICE_INFO
pdi
,
LPFNADDPROPSHEETPAGE
pfnAdd
,
LPARAM
lParam
)
{
FIXME
(
"(%p %p %
l
x)
\n
"
,
pdi
,
pfnAdd
,
lParam
);
FIXME
(
"(%p %p %
I
x)
\n
"
,
pdi
,
pfnAdd
,
lParam
);
return
FALSE
;
}
...
...
@@ -170,13 +170,13 @@ static BOOL SERIALUI_GetConfItems(HWND hDlg, DWORD id, LPCPARAM2STR table, LPDWO
if
(
(
!
hControl
)
||
(
!
lpdwVal
))
{
TRACE
(
"Couldn't get window handle for item %x
\n
"
,
id
);
TRACE
(
"Couldn't get window handle for item %
l
x
\n
"
,
id
);
return
FALSE
;
}
if
(
!
GetWindowTextA
(
hControl
,
&
lpEntry
[
0
],
sizeof
(
lpEntry
)))
{
TRACE
(
"Couldn't get window text for item %x
\n
"
,
id
);
TRACE
(
"Couldn't get window text for item %
l
x
\n
"
,
id
);
return
FALSE
;
}
/* TRACE("%ld contains %s\n",id, lpEntry); */
...
...
@@ -286,7 +286,7 @@ static void SERIALUI_DialogInfoToDCB(HWND hDlg, SERIALUI_DialogInfo *info)
SERIALUI_GetConfItems
(
hDlg
,
IDC_DATA
,
&
SERIALUI_Data2Str
,
&
dwByteSize
);
SERIALUI_GetConfItems
(
hDlg
,
IDC_FLOW
,
&
SERIALUI_Flow2Str
,
&
dwFlowControl
);
TRACE
(
"baud=%
d stop=%d parity=%d data=%d flow=%
d
\n
"
,
TRACE
(
"baud=%
ld stop=%ld parity=%ld data=%ld flow=%l
d
\n
"
,
dwBaudRate
,
dwStopBits
,
dwParity
,
dwByteSize
,
dwFlowControl
);
lpdcb
->
BaudRate
=
dwBaudRate
;
...
...
@@ -477,7 +477,7 @@ BOOL WINAPI drvSetDefaultCommConfigW(
WCHAR
szKeyName
[
100
];
DWORD
r
,
dwDCBSize
;
TRACE
(
"%p %p %x
\n
"
,
lpszDevice
,
lpCommConfig
,
dwSize
);
TRACE
(
"%p %p %
l
x
\n
"
,
lpszDevice
,
lpCommConfig
,
dwSize
);
if
(
!
lpCommConfig
)
return
FALSE
;
...
...
@@ -495,7 +495,7 @@ BOOL WINAPI drvSetDefaultCommConfigW(
{
dwDCBSize
=
sizeof
(
DCB
);
r
=
RegSetValueExW
(
hKeyPort
,
L"DCB"
,
0
,
REG_BINARY
,
(
BYTE
*
)
&
lpCommConfig
->
dcb
,
dwDCBSize
);
TRACE
(
"write key r=%d
\n
"
,
r
);
TRACE
(
"write key r=%
l
d
\n
"
,
r
);
RegCloseKey
(
hKeyPort
);
}
...
...
@@ -530,7 +530,7 @@ DWORD WINAPI drvGetDefaultCommConfigW(
WCHAR
szKeyName
[
100
];
DWORD
r
,
dwSize
,
dwType
;
TRACE
(
"(%s, %p, %p) *lpdwSize: %u
\n
"
,
debugstr_w
(
lpszDevice
),
lpCommConfig
,
lpdwSize
,
lpdwSize
?
*
lpdwSize
:
0
);
TRACE
(
"(%s, %p, %p) *lpdwSize: %
l
u
\n
"
,
debugstr_w
(
lpszDevice
),
lpCommConfig
,
lpdwSize
,
lpdwSize
?
*
lpdwSize
:
0
);
if
((
!
lpszDevice
)
||
(
!
lpCommConfig
)
||
(
!
lpdwSize
))
{
return
ERROR_INVALID_PARAMETER
;
...
...
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