Zebediah Figura : quartz: Avoid importing shlwapi.

Alexandre Julliard julliard at winehq.org
Mon Apr 29 16:08:49 CDT 2019


Module: wine
Branch: master
Commit: 5c06f4e4d5b1301e0257c7ccce830713d6da7972
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=5c06f4e4d5b1301e0257c7ccce830713d6da7972

Author: Zebediah Figura <z.figura12 at gmail.com>
Date:   Sun Apr 28 21:40:10 2019 -0500

quartz: Avoid importing shlwapi.

Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/quartz/Makefile.in  | 2 +-
 dlls/quartz/filesource.c | 3 +--
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/dlls/quartz/Makefile.in b/dlls/quartz/Makefile.in
index 4e5f18d..56ca40d 100644
--- a/dlls/quartz/Makefile.in
+++ b/dlls/quartz/Makefile.in
@@ -1,6 +1,6 @@
 MODULE    = quartz.dll
 IMPORTLIB = quartz
-IMPORTS   = strmiids dxguid strmbase uuid dsound msacm32 msvfw32 ole32 oleaut32 shlwapi rpcrt4 user32 gdi32 advapi32
+IMPORTS   = strmiids dxguid strmbase uuid dsound msacm32 msvfw32 ole32 oleaut32 rpcrt4 user32 gdi32 advapi32
 
 C_SRCS = \
 	acmwrapper.c \
diff --git a/dlls/quartz/filesource.c b/dlls/quartz/filesource.c
index fc3e508..e53db99 100644
--- a/dlls/quartz/filesource.c
+++ b/dlls/quartz/filesource.c
@@ -100,8 +100,7 @@ static HRESULT process_extensions(HKEY hkeyExtensions, LPCOLESTR pszFileName, GU
         return E_POINTER;
 
     /* Get the part of the name that matters */
-    extension = PathFindExtensionW(pszFileName);
-    if (*extension != '.')
+    if (!(extension = strrchrW(pszFileName, '.')))
         return E_FAIL;
 
     l = RegOpenKeyExW(hkeyExtensions, extension, 0, KEY_READ, &hsub);




More information about the wine-cvs mailing list