From 844b0449200431c7dc8e2d08b1cab61810110e81 Mon Sep 17 00:00:00 2001 From: "av%netscape.com" Date: Sat, 3 Jul 1999 00:07:46 +0000 Subject: [PATCH] Addressing bug #5978 --- modules/plugin/base/src/nsPluginsDirWin.cpp | 2 +- modules/plugin/nglsrc/nsPluginsDirWin.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/plugin/base/src/nsPluginsDirWin.cpp b/modules/plugin/base/src/nsPluginsDirWin.cpp index 14c5b61e7d41..ef0379d4710f 100644 --- a/modules/plugin/base/src/nsPluginsDirWin.cpp +++ b/modules/plugin/base/src/nsPluginsDirWin.cpp @@ -294,7 +294,7 @@ nsresult nsPluginFile::GetPluginInfo(nsPluginInfo& info) if(::GetFileVersionInfo((char*)path, NULL, versionsize, verbuf)) { - info.fName = GetFileName(path); + info.fName = GetKeyValue(verbuf, "\\StringFileInfo\\040904E4\\ProductName"); info.fDescription = GetKeyValue(verbuf, "\\StringFileInfo\\040904E4\\FileDescription"); info.fMimeType = GetKeyValue(verbuf, "\\StringFileInfo\\040904E4\\MIMEType"); diff --git a/modules/plugin/nglsrc/nsPluginsDirWin.cpp b/modules/plugin/nglsrc/nsPluginsDirWin.cpp index 14c5b61e7d41..ef0379d4710f 100644 --- a/modules/plugin/nglsrc/nsPluginsDirWin.cpp +++ b/modules/plugin/nglsrc/nsPluginsDirWin.cpp @@ -294,7 +294,7 @@ nsresult nsPluginFile::GetPluginInfo(nsPluginInfo& info) if(::GetFileVersionInfo((char*)path, NULL, versionsize, verbuf)) { - info.fName = GetFileName(path); + info.fName = GetKeyValue(verbuf, "\\StringFileInfo\\040904E4\\ProductName"); info.fDescription = GetKeyValue(verbuf, "\\StringFileInfo\\040904E4\\FileDescription"); info.fMimeType = GetKeyValue(verbuf, "\\StringFileInfo\\040904E4\\MIMEType");