[PATCH v2 3/5] msvideo: Stop looking for drivers in system.ini.

Zebediah Figura z.figura12 at gmail.com
Mon Jul 27 20:02:34 CDT 2020


Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
---
 dlls/msvideo.dll16/msvideo16.c | 15 +--------------
 1 file changed, 1 insertion(+), 14 deletions(-)

diff --git a/dlls/msvideo.dll16/msvideo16.c b/dlls/msvideo.dll16/msvideo16.c
index 840de2efa8c..3618c0c49d5 100644
--- a/dlls/msvideo.dll16/msvideo16.c
+++ b/dlls/msvideo.dll16/msvideo16.c
@@ -874,7 +874,7 @@ DWORD WINAPI VideoCapDriverDescAndVer16(WORD nr, LPSTR buf1, WORD buf1len,
     DWORD	verhandle;
     DWORD	infosize;
     UINT	subblocklen;
-    char	*s, buf[2048], fn[260];
+    char buf[2048], fn[260];
     LPBYTE	infobuf;
     LPVOID	subblock;
     DWORD	i, cnt = 0, lRet;
@@ -903,19 +903,6 @@ DWORD WINAPI VideoCapDriverDescAndVer16(WORD nr, LPSTR buf1, WORD buf1len,
 	RegCloseKey( hKey );
     }
 
-    /* search system.ini if not found in the registry */
-    if (!found && GetPrivateProfileStringA("drivers32", NULL, NULL, buf, sizeof(buf), "system.ini"))
-    {
-	for (s = buf; *s; s += strlen(s) + 1)
-	{
-	    if (_strnicmp(s, "vid", 3)) continue;
-	    if (nr--) continue;
-	    if (GetPrivateProfileStringA("drivers32", s, NULL, fn, sizeof(fn), "system.ini"))
-		found = TRUE;
-	    break;
-	}
-    }
-
     if (!found)
     {
         TRACE("No more VID* entries found nr=%d\n", nr);
-- 
2.27.0




More information about the wine-devel mailing list