Fixed checking of special dll names.
diff --git a/misc/version.c b/misc/version.c
index 414c13c..362c8d6 100644
--- a/misc/version.c
+++ b/misc/version.c
@@ -199,11 +199,11 @@
version autodetection switches wine to unicode (nt 3.51 or 4.0) */
static char * special_dlls[] =
{
- "COMDLG32",
- "COMCTL32",
- "SHELL32",
- "OLE32",
- "RPCRT4",
+ "comdlg32.dll",
+ "comctl32.dll",
+ "shell32.dll",
+ "ole32.dll",
+ "rpcrt4.dll",
NULL
};
@@ -432,7 +432,7 @@
for (i = 0; special_dlls[i]; i++)
{
/* 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);
if (WinVersion == NB_WINDOWS_VERSIONS)