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
21d95abe
Commit
21d95abe
authored
Jun 10, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
localui: Build with msvcrt.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
8c98417c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
9 deletions
+10
-9
Makefile.in
dlls/localui/Makefile.in
+2
-0
localui.c
dlls/localui/localui.c
+8
-9
No files found.
dlls/localui/Makefile.in
View file @
21d95abe
MODULE
=
localui.dll
IMPORTS
=
winspool user32
EXTRADLLFLAGS
=
-mno-cygwin
C_SRCS
=
\
localui.c
...
...
dlls/localui/localui.c
View file @
21d95abe
...
...
@@ -30,7 +30,6 @@
#include "ddk/winsplp.h"
#include "wine/debug.h"
#include "wine/unicode.h"
#include "localui.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
localui
);
...
...
@@ -187,7 +186,7 @@ static void dlg_port_already_exists(HWND hWnd, LPCWSTR portname)
message
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
*
sizeof
(
WCHAR
));
if
(
message
)
{
message
[
0
]
=
'\0'
;
s
nprintfW
(
message
,
len
,
res_PortExistsW
,
portname
);
s
wprintf
(
message
,
len
,
res_PortExistsW
,
portname
);
MessageBoxW
(
hWnd
,
message
,
res_PortW
,
MB_OK
|
MB_ICONERROR
);
HeapFree
(
GetProcessHeap
(),
0
,
message
);
}
...
...
@@ -213,7 +212,7 @@ static void dlg_invalid_portname(HWND hWnd, LPCWSTR portname)
message
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
*
sizeof
(
WCHAR
));
if
(
message
)
{
message
[
0
]
=
'\0'
;
s
nprintfW
(
message
,
len
,
res_InvalidNameW
,
portname
);
s
wprintf
(
message
,
len
,
res_InvalidNameW
,
portname
);
MessageBoxW
(
hWnd
,
message
,
res_PortW
,
MB_OK
|
MB_ICONERROR
);
HeapFree
(
GetProcessHeap
(),
0
,
message
);
}
...
...
@@ -380,7 +379,7 @@ static INT_PTR CALLBACK dlgproc_lptconfig(HWND hwnd, UINT msg, WPARAM wparam, LP
/* native localui.dll use the same limits */
if
((
res
>
0
)
&&
(
res
<
1000000
)
&&
status
)
{
s
printfW
(
bufferW
,
fmt_uW
,
res
);
s
wprintf
(
bufferW
,
ARRAY_SIZE
(
bufferW
)
,
fmt_uW
,
res
);
res
=
XcvDataW
(
data
->
hXcv
,
cmd_ConfigureLPTPortCommandOKW
,
(
PBYTE
)
bufferW
,
(
lstrlenW
(
bufferW
)
+
1
)
*
sizeof
(
WCHAR
),
...
...
@@ -416,13 +415,13 @@ static DWORD get_type_from_name(LPCWSTR name)
{
HANDLE
hfile
;
if
(
!
strncmpiW
(
name
,
portname_LPT
,
ARRAY_SIZE
(
portname_LPT
)
-
1
))
if
(
!
wcsnicmp
(
name
,
portname_LPT
,
ARRAY_SIZE
(
portname_LPT
)
-
1
))
return
PORT_IS_LPT
;
if
(
!
strncmpiW
(
name
,
portname_COM
,
ARRAY_SIZE
(
portname_COM
)
-
1
))
if
(
!
wcsnicmp
(
name
,
portname_COM
,
ARRAY_SIZE
(
portname_COM
)
-
1
))
return
PORT_IS_COM
;
if
(
!
strcmpiW
(
name
,
portname_FILE
))
if
(
!
wcsicmp
(
name
,
portname_FILE
))
return
PORT_IS_FILE
;
if
(
name
[
0
]
==
'/'
)
...
...
@@ -431,10 +430,10 @@ static DWORD get_type_from_name(LPCWSTR name)
if
(
name
[
0
]
==
'|'
)
return
PORT_IS_PIPE
;
if
(
!
strncmpW
(
name
,
portname_CUPS
,
ARRAY_SIZE
(
portname_CUPS
)
-
1
))
if
(
!
wcsncmp
(
name
,
portname_CUPS
,
ARRAY_SIZE
(
portname_CUPS
)
-
1
))
return
PORT_IS_CUPS
;
if
(
!
strncmpW
(
name
,
portname_LPR
,
ARRAY_SIZE
(
portname_LPR
)
-
1
))
if
(
!
wcsncmp
(
name
,
portname_LPR
,
ARRAY_SIZE
(
portname_LPR
)
-
1
))
return
PORT_IS_LPR
;
/* Must be a file or a directory. Does the file exist ? */
...
...
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