From 1df18838f6503f0beae003f5917e7853cd3f7bc1 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Fri, 6 Sep 2002 18:37:48 +0000 Subject: [PATCH] Fixed checking of special dll names. --- misc/version.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/misc/version.c b/misc/version.c index 414c13cba7..362c8d6a3b 100644 --- a/misc/version.c +++ b/misc/version.c @@ -199,11 +199,11 @@ static const char *WinVersionNames[NB_WINDOWS_VERSIONS] = 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 @@ static DWORD VERSION_GetLinkedDllVersion(void) 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)