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
87a6f2fc
Commit
87a6f2fc
authored
Apr 02, 2019
by
Piotr Caban
Committed by
Alexandre Julliard
Apr 02, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvideo.dll16: Don't use strncasecmp.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
5e807741
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
msvideo16.c
dlls/msvideo.dll16/msvideo16.c
+3
-2
No files found.
dlls/msvideo.dll16/msvideo16.c
View file @
87a6f2fc
...
@@ -28,6 +28,7 @@
...
@@ -28,6 +28,7 @@
#include "winver.h"
#include "winver.h"
#include "winnls.h"
#include "winnls.h"
#include "winreg.h"
#include "winreg.h"
#include "winternl.h"
#include "winuser.h"
#include "winuser.h"
#include "wine/winbase16.h"
#include "wine/winbase16.h"
#include "wownt32.h"
#include "wownt32.h"
...
@@ -892,7 +893,7 @@ DWORD WINAPI VideoCapDriverDescAndVer16(WORD nr, LPSTR buf1, WORD buf1len,
...
@@ -892,7 +893,7 @@ DWORD WINAPI VideoCapDriverDescAndVer16(WORD nr, LPSTR buf1, WORD buf1len,
bufLen
=
ARRAY_SIZE
(
buf
);
bufLen
=
ARRAY_SIZE
(
buf
);
lRet
=
RegEnumKeyExA
(
hKey
,
i
,
buf
,
&
bufLen
,
0
,
0
,
0
,
&
lastWrite
);
lRet
=
RegEnumKeyExA
(
hKey
,
i
,
buf
,
&
bufLen
,
0
,
0
,
0
,
&
lastWrite
);
if
(
lRet
!=
ERROR_SUCCESS
)
continue
;
if
(
lRet
!=
ERROR_SUCCESS
)
continue
;
if
(
strncase
cmp
(
buf
,
"vid"
,
3
))
continue
;
if
(
_strni
cmp
(
buf
,
"vid"
,
3
))
continue
;
if
(
nr
--
)
continue
;
if
(
nr
--
)
continue
;
fnLen
=
sizeof
(
fn
);
fnLen
=
sizeof
(
fn
);
lRet
=
RegQueryValueExA
(
hKey
,
buf
,
0
,
0
,
(
LPBYTE
)
fn
,
&
fnLen
);
lRet
=
RegQueryValueExA
(
hKey
,
buf
,
0
,
0
,
(
LPBYTE
)
fn
,
&
fnLen
);
...
@@ -907,7 +908,7 @@ DWORD WINAPI VideoCapDriverDescAndVer16(WORD nr, LPSTR buf1, WORD buf1len,
...
@@ -907,7 +908,7 @@ DWORD WINAPI VideoCapDriverDescAndVer16(WORD nr, LPSTR buf1, WORD buf1len,
{
{
for
(
s
=
buf
;
*
s
;
s
+=
strlen
(
s
)
+
1
)
for
(
s
=
buf
;
*
s
;
s
+=
strlen
(
s
)
+
1
)
{
{
if
(
strncase
cmp
(
s
,
"vid"
,
3
))
continue
;
if
(
_strni
cmp
(
s
,
"vid"
,
3
))
continue
;
if
(
nr
--
)
continue
;
if
(
nr
--
)
continue
;
if
(
GetPrivateProfileStringA
(
"drivers32"
,
s
,
NULL
,
fn
,
sizeof
(
fn
),
"system.ini"
))
if
(
GetPrivateProfileStringA
(
"drivers32"
,
s
,
NULL
,
fn
,
sizeof
(
fn
),
"system.ini"
))
found
=
TRUE
;
found
=
TRUE
;
...
...
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