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
2974f234
Commit
2974f234
authored
Feb 11, 2022
by
Eric Pouech
Committed by
Alexandre Julliard
Feb 11, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
localui: Enable compilation with long types.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
600d8042
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
10 deletions
+9
-10
Makefile.in
dlls/localui/Makefile.in
+0
-1
localui.c
dlls/localui/localui.c
+9
-9
No files found.
dlls/localui/Makefile.in
View file @
2974f234
EXTRADEFS
=
-DWINE_NO_LONG_TYPES
MODULE
=
localui.dll
IMPORTS
=
winspool user32
...
...
dlls/localui/localui.c
View file @
2974f234
...
...
@@ -134,7 +134,7 @@ static BOOL dlg_configure_lpt(HANDLE hXcv, HWND hWnd)
res
=
DialogBoxParamW
(
LOCALUI_hInstance
,
MAKEINTRESOURCEW
(
LPTCONFIG_DIALOG
),
hWnd
,
dlgproc_lptconfig
,
(
LPARAM
)
&
data
);
TRACE
(
"got %u with %u
\n
"
,
res
,
GetLastError
());
TRACE
(
"got %u with %
l
u
\n
"
,
res
,
GetLastError
());
if
(
!
res
)
SetLastError
(
ERROR_CANCELLED
);
return
res
;
...
...
@@ -270,7 +270,7 @@ static INT_PTR CALLBACK dlgproc_addport(HWND hwnd, UINT msg, WPARAM wparam, LPAR
(
lstrlenW
(
data
->
portname
)
+
1
)
*
sizeof
(
WCHAR
),
(
PBYTE
)
&
dummy
,
0
,
&
len
,
&
status
);
TRACE
(
"got %
u with status %
u
\n
"
,
res
,
status
);
TRACE
(
"got %
lu with status %l
u
\n
"
,
res
,
status
);
if
(
res
&&
(
status
==
ERROR_SUCCESS
))
{
/* The caller must free data->portname */
EndDialog
(
hwnd
,
TRUE
);
...
...
@@ -334,7 +334,7 @@ static INT_PTR CALLBACK dlgproc_lptconfig(HWND hwnd, UINT msg, WPARAM wparam, LP
(
PBYTE
)
&
dummy
,
0
,
(
PBYTE
)
&
data
->
value
,
sizeof
(
data
->
value
),
&
len
,
&
status
);
TRACE
(
"got %
u with status %
u
\n
"
,
res
,
status
);
TRACE
(
"got %
lu with status %l
u
\n
"
,
res
,
status
);
/* Set current setting as the initial value in the Dialog */
SetDlgItemInt
(
hwnd
,
LPTCONFIG_EDIT
,
data
->
value
,
FALSE
);
...
...
@@ -349,7 +349,7 @@ static INT_PTR CALLBACK dlgproc_lptconfig(HWND hwnd, UINT msg, WPARAM wparam, LP
res
=
GetDlgItemInt
(
hwnd
,
LPTCONFIG_EDIT
,
(
BOOL
*
)
&
status
,
FALSE
);
/* length is in WCHAR, including the '\0' */
GetDlgItemTextW
(
hwnd
,
LPTCONFIG_EDIT
,
bufferW
,
ARRAY_SIZE
(
bufferW
));
TRACE
(
"got %s and %
u (translated: %
u)
\n
"
,
debugstr_w
(
bufferW
),
res
,
status
);
TRACE
(
"got %s and %
lu (translated: %l
u)
\n
"
,
debugstr_w
(
bufferW
),
res
,
status
);
/* native localui.dll use the same limits */
if
((
res
>
0
)
&&
(
res
<
1000000
)
&&
status
)
{
...
...
@@ -359,7 +359,7 @@ static INT_PTR CALLBACK dlgproc_lptconfig(HWND hwnd, UINT msg, WPARAM wparam, LP
(
lstrlenW
(
bufferW
)
+
1
)
*
sizeof
(
WCHAR
),
(
PBYTE
)
&
dummy
,
0
,
&
len
,
&
status
);
TRACE
(
"got %
u with status %
u
\n
"
,
res
,
status
);
TRACE
(
"got %
lu with status %l
u
\n
"
,
res
,
status
);
EndDialog
(
hwnd
,
TRUE
);
return
TRUE
;
}
...
...
@@ -489,7 +489,7 @@ static BOOL WINAPI localui_AddPortUI(PCWSTR pName, HWND hWnd, PCWSTR pMonitorNam
res
=
DialogBoxParamW
(
LOCALUI_hInstance
,
MAKEINTRESOURCEW
(
ADDPORT_DIALOG
),
hWnd
,
dlgproc_addport
,
(
LPARAM
)
&
data
);
TRACE
(
"got %
u with %
u for %s
\n
"
,
res
,
GetLastError
(),
debugstr_w
(
data
.
portname
));
TRACE
(
"got %
lu with %l
u for %s
\n
"
,
res
,
GetLastError
(),
debugstr_w
(
data
.
portname
));
if
(
ppPortName
)
*
ppPortName
=
NULL
;
...
...
@@ -498,7 +498,7 @@ static BOOL WINAPI localui_AddPortUI(PCWSTR pName, HWND hWnd, PCWSTR pMonitorNam
(
lstrlenW
(
data
.
portname
)
+
1
)
*
sizeof
(
WCHAR
),
(
PBYTE
)
&
dummy
,
0
,
&
needed
,
&
status
);
TRACE
(
"got %
u with status %
u
\n
"
,
res
,
status
);
TRACE
(
"got %
lu with status %l
u
\n
"
,
res
,
status
);
if
(
res
&&
(
status
==
ERROR_SUCCESS
)
&&
ppPortName
)
{
/* Native localui uses GlobalAlloc also.
The caller must GlobalFree the buffer */
...
...
@@ -520,7 +520,7 @@ static BOOL WINAPI localui_AddPortUI(PCWSTR pName, HWND hWnd, PCWSTR pMonitorNam
ClosePrinter
(
hXcv
);
}
TRACE
(
"=> %
u with %
u
\n
"
,
res
,
GetLastError
());
TRACE
(
"=> %
lu with %l
u
\n
"
,
res
,
GetLastError
());
return
res
;
}
...
...
@@ -652,7 +652,7 @@ PMONITORUI WINAPI InitializePrintMonitorUI(void)
*/
BOOL
WINAPI
DllMain
(
HINSTANCE
hinstDLL
,
DWORD
fdwReason
,
LPVOID
lpvReserved
)
{
TRACE
(
"(%p, %d, %p)
\n
"
,
hinstDLL
,
fdwReason
,
lpvReserved
);
TRACE
(
"(%p, %
l
d, %p)
\n
"
,
hinstDLL
,
fdwReason
,
lpvReserved
);
switch
(
fdwReason
)
{
...
...
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