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
e97ec060
Commit
e97ec060
authored
Jun 14, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
newdev: Build with msvcrt.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
3e5db60e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
Makefile.in
dlls/newdev/Makefile.in
+2
-0
main.c
dlls/newdev/main.c
+4
-4
No files found.
dlls/newdev/Makefile.in
View file @
e97ec060
...
...
@@ -2,4 +2,6 @@ MODULE = newdev.dll
IMPORTLIB
=
newdev
IMPORTS
=
setupapi
EXTRADLLFLAGS
=
-mno-cygwin
C_SRCS
=
main.c
dlls/newdev/main.c
View file @
e97ec060
...
...
@@ -23,6 +23,7 @@
#include "windef.h"
#include "winerror.h"
#include "winbase.h"
#include "winnls.h"
#include "winuser.h"
#include "winreg.h"
#include "cfgmgr32.h"
...
...
@@ -30,7 +31,6 @@
#include "wine/debug.h"
#include "wine/heap.h"
#include "wine/unicode.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
setupapi
);
...
...
@@ -71,9 +71,9 @@ static BOOL hardware_id_matches(const WCHAR *id, const WCHAR *device_ids)
{
while
(
*
device_ids
)
{
if
(
!
strcmpW
(
id
,
device_ids
))
if
(
!
wcscmp
(
id
,
device_ids
))
return
TRUE
;
device_ids
+=
strlenW
(
device_ids
)
+
1
;
device_ids
+=
l
strlenW
(
device_ids
)
+
1
;
}
return
FALSE
;
}
...
...
@@ -128,7 +128,7 @@ BOOL WINAPI UpdateDriverForPlugAndPlayDevicesW(HWND parent, const WCHAR *hardwar
if
(
!
SetupDiGetDeviceInstallParamsW
(
set
,
&
device
,
&
params
))
continue
;
strcpyW
(
params
.
DriverPath
,
inf_path
);
l
strcpyW
(
params
.
DriverPath
,
inf_path
);
params
.
Flags
|=
DI_ENUMSINGLEINF
;
if
(
!
SetupDiSetDeviceInstallParamsW
(
set
,
&
device
,
&
params
))
continue
;
...
...
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