[PATCH] shell32: Fix 2 MSVC warnings about flags.

Serge Gautherie winehq-git_serge_180711 at gautherie.fr
Thu Jul 19 15:52:03 CDT 2018


Signed-off-by: Serge Gautherie <winehq-git_serge_180711 at gautherie.fr>
---
- "...\ebrowser.c(1188) : warning C4133: 'function' : incompatible types - from 'DWORD *' to 'EXPLORER_BROWSER_OPTIONS *'"
- "...\ebrowser.c(1198) : warning C4133: 'function' : incompatible types - from 'DWORD *' to 'EXPLORER_BROWSER_OPTIONS *'"

ReactOS-Bug: https://jira.reactos.org/browse/CORE-7538
---
 dlls/shell32/tests/ebrowser.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/shell32/tests/ebrowser.c b/dlls/shell32/tests/ebrowser.c
index 3e89b90..7691508 100644
--- a/dlls/shell32/tests/ebrowser.c
+++ b/dlls/shell32/tests/ebrowser.c
@@ -1102,7 +1102,7 @@ static void test_basics(void)
     IShellBrowser *psb;
     FOLDERSETTINGS fs;
     ULONG lres;
-    DWORD flags;
+    EXPLORER_BROWSER_OPTIONS flags;
     HDWP hdwp;
     RECT rc;
     HRESULT hr;
@@ -1187,7 +1187,7 @@ static void test_basics(void)
 
     hr = IExplorerBrowser_GetOptions(peb, &flags);
     ok(hr == S_OK, "got (0x%08x)\n", hr);
-    ok(flags == 0, "got (0x%08x)\n", flags);
+    ok(flags == 0, "got (0x%08x)\n", (int)flags);
 
     /* Settings preserved through Initialize. */
     hr = IExplorerBrowser_SetOptions(peb, 0xDEADBEEF);
@@ -1196,8 +1196,8 @@ static void test_basics(void)
     ebrowser_initialize(peb);
 
     hr = IExplorerBrowser_GetOptions(peb, &flags);
-    ok(flags == 0xDEADBEEF, "got (0x%08x)\n", flags);
     ok(hr == S_OK, "got (0x%08x)\n", hr);
+    ok(flags == 0xDEADBEEF, "got (0x%08x)\n", (int)flags);
 
     IExplorerBrowser_Destroy(peb);
     IExplorerBrowser_Release(peb);
-- 
2.10.0.windows.1




More information about the wine-devel mailing list