Piotr Caban : msvideo.dll16: Don't use strncasecmp.
Alexandre Julliard
julliard at winehq.org
Tue Apr 2 16:09:59 CDT 2019
Module: wine
Branch: master
Commit: 87a6f2fc0ffde2ecfc60d79eb1fd91825d340b41
URL: https://source.winehq.org/git/wine.git/?a=commit;h=87a6f2fc0ffde2ecfc60d79eb1fd91825d340b41
Author: Piotr Caban <piotr at codeweavers.com>
Date: Tue Apr 2 16:51:40 2019 +0200
msvideo.dll16: Don't use strncasecmp.
Signed-off-by: Piotr Caban <piotr at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/msvideo.dll16/msvideo16.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/dlls/msvideo.dll16/msvideo16.c b/dlls/msvideo.dll16/msvideo16.c
index bc239a8..840de2e 100644
--- a/dlls/msvideo.dll16/msvideo16.c
+++ b/dlls/msvideo.dll16/msvideo16.c
@@ -28,6 +28,7 @@
#include "winver.h"
#include "winnls.h"
#include "winreg.h"
+#include "winternl.h"
#include "winuser.h"
#include "wine/winbase16.h"
#include "wownt32.h"
@@ -892,7 +893,7 @@ DWORD WINAPI VideoCapDriverDescAndVer16(WORD nr, LPSTR buf1, WORD buf1len,
bufLen = ARRAY_SIZE(buf);
lRet = RegEnumKeyExA(hKey, i, buf, &bufLen, 0, 0, 0, &lastWrite);
if (lRet != ERROR_SUCCESS) continue;
- if (strncasecmp(buf, "vid", 3)) continue;
+ if (_strnicmp(buf, "vid", 3)) continue;
if (nr--) continue;
fnLen = sizeof(fn);
lRet = RegQueryValueExA(hKey, buf, 0, 0, (LPBYTE)fn, &fnLen);
@@ -907,7 +908,7 @@ DWORD WINAPI VideoCapDriverDescAndVer16(WORD nr, LPSTR buf1, WORD buf1len,
{
for (s = buf; *s; s += strlen(s) + 1)
{
- if (strncasecmp(s, "vid", 3)) continue;
+ if (_strnicmp(s, "vid", 3)) continue;
if (nr--) continue;
if (GetPrivateProfileStringA("drivers32", s, NULL, fn, sizeof(fn), "system.ini"))
found = TRUE;
More information about the wine-cvs
mailing list