=?UTF-8?Q?Andr=C3=A9=20Hentschel=20?=: shell32: Don' t cast return value from DPA_GetPtr.

Alexandre Julliard julliard at winehq.org
Tue Jan 2 13:19:02 CST 2018


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

Author: André Hentschel <nerv at dawncrow.de>
Date:   Tue Jan  2 12:54:21 2018 +0100

shell32: Don't cast return value from DPA_GetPtr.

Signed-off-by: André Hentschel <nerv at dawncrow.de>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/shell32/iconcache.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/shell32/iconcache.c b/dlls/shell32/iconcache.c
index 0ea2eb9..fc4e703 100644
--- a/dlls/shell32/iconcache.c
+++ b/dlls/shell32/iconcache.c
@@ -129,7 +129,7 @@ HRESULT SIC_get_location( int list_idx, WCHAR *file, DWORD *size, int *res_idx )
     dpa_idx = DPA_Search( sic_hdpa, &seek, 0, SIC_CompareEntries, SIC_COMPARE_LISTINDEX, 0 );
     if (dpa_idx != -1)
     {
-        found = (SIC_ENTRY *)DPA_GetPtr( sic_hdpa, dpa_idx );
+        found = DPA_GetPtr( sic_hdpa, dpa_idx );
         needed = (strlenW( found->sSourceFile ) + 1) * sizeof(WCHAR);
         if (needed <= *size)
         {




More information about the wine-cvs mailing list