Commit 1df18838 authored by Alexandre Julliard's avatar Alexandre Julliard

Fixed checking of special dll names.

parent f2b71d14
...@@ -199,11 +199,11 @@ static const char *WinVersionNames[NB_WINDOWS_VERSIONS] = ...@@ -199,11 +199,11 @@ static const char *WinVersionNames[NB_WINDOWS_VERSIONS] =
version autodetection switches wine to unicode (nt 3.51 or 4.0) */ version autodetection switches wine to unicode (nt 3.51 or 4.0) */
static char * special_dlls[] = static char * special_dlls[] =
{ {
"COMDLG32", "comdlg32.dll",
"COMCTL32", "comctl32.dll",
"SHELL32", "shell32.dll",
"OLE32", "ole32.dll",
"RPCRT4", "rpcrt4.dll",
NULL NULL
}; };
...@@ -432,7 +432,7 @@ static DWORD VERSION_GetLinkedDllVersion(void) ...@@ -432,7 +432,7 @@ static DWORD VERSION_GetLinkedDllVersion(void)
for (i = 0; special_dlls[i]; i++) for (i = 0; special_dlls[i]; i++)
{ {
/* test if it is a special dll */ /* test if it is a special dll */
if (!strncasecmp(wm->modname, special_dlls[i], strlen(special_dlls[i]) )) if (!strcasecmp(wm->modname, special_dlls[i]))
{ {
DWORD DllVersion = VERSION_GetSystemDLLVersion(wm->module); DWORD DllVersion = VERSION_GetSystemDLLVersion(wm->module);
if (WinVersion == NB_WINDOWS_VERSIONS) if (WinVersion == NB_WINDOWS_VERSIONS)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment