Eric Pouech : appwiz.cpl: Enable compilation with long types.
Alexandre Julliard
julliard at winehq.org
Tue Feb 8 16:11:44 CST 2022
Module: wine
Branch: master
Commit: e9c84cca2d4f763585e701ec8280f142dcaa8205
URL: https://source.winehq.org/git/wine.git/?a=commit;h=e9c84cca2d4f763585e701ec8280f142dcaa8205
Author: Eric Pouech <eric.pouech at gmail.com>
Date: Mon Feb 7 23:10:58 2022 +0100
appwiz.cpl: Enable compilation with long types.
Signed-off-by: Eric Pouech <eric.pouech at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/appwiz.cpl/Makefile.in | 1 -
dlls/appwiz.cpl/addons.c | 12 ++++++------
dlls/appwiz.cpl/appwiz.c | 2 +-
3 files changed, 7 insertions(+), 8 deletions(-)
diff --git a/dlls/appwiz.cpl/Makefile.in b/dlls/appwiz.cpl/Makefile.in
index 1ba9760d41a..91af64cceec 100644
--- a/dlls/appwiz.cpl/Makefile.in
+++ b/dlls/appwiz.cpl/Makefile.in
@@ -1,4 +1,3 @@
-EXTRADEFS = -DWINE_NO_LONG_TYPES
MODULE = appwiz.cpl
IMPORTS = uuid urlmon advpack comctl32 advapi32 shell32 ole32 user32 comdlg32 bcrypt kernelbase
DELAYIMPORTS = msi
diff --git a/dlls/appwiz.cpl/addons.c b/dlls/appwiz.cpl/addons.c
index 71919f225c8..1d87eac5b1a 100644
--- a/dlls/appwiz.cpl/addons.c
+++ b/dlls/appwiz.cpl/addons.c
@@ -127,7 +127,7 @@ static BOOL sha_check(const WCHAR *file_name)
file = CreateFileW(file_name, GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_READONLY, NULL);
if(file == INVALID_HANDLE_VALUE) {
- WARN("Could not open file: %u\n", GetLastError());
+ WARN("Could not open file: %lu\n", GetLastError());
return FALSE;
}
@@ -189,7 +189,7 @@ static enum install_res install_file(const WCHAR *file_name)
if(res == ERROR_PRODUCT_VERSION)
res = MsiInstallProductW(file_name, L"REINSTALL=ALL REINSTALLMODE=vomus");
if(res != ERROR_SUCCESS) {
- ERR("MsiInstallProduct failed: %u\n", res);
+ ERR("MsiInstallProduct failed: %lu\n", res);
return INSTALL_FAILED;
}
@@ -218,7 +218,7 @@ static enum install_res install_from_dos_file(const WCHAR *dir, const WCHAR *sub
hr = PathAllocCanonicalize( path, PATHCCH_ALLOW_LONG_PATHS, &canonical_path );
if (FAILED( hr ))
{
- ERR( "Failed to canonicalize %s, hr %#x\n", debugstr_w(path), hr );
+ ERR( "Failed to canonicalize %s, hr %#lx\n", debugstr_w(path), hr );
heap_free( path );
return INSTALL_NEXT;
}
@@ -350,7 +350,7 @@ static WCHAR *get_cache_file_name(BOOL ensure_exists)
if (ensure_exists && !CreateDirectoryW( cache_dir, NULL ) && GetLastError() != ERROR_ALREADY_EXISTS)
{
- WARN( "%s does not exist and could not be created (%u)\n", debugstr_w(cache_dir), GetLastError() );
+ WARN( "%s does not exist and could not be created (%lu)\n", debugstr_w(cache_dir), GetLastError() );
heap_free( cache_dir );
return NULL;
}
@@ -367,7 +367,7 @@ static WCHAR *get_cache_file_name(BOOL ensure_exists)
if (ensure_exists && !CreateDirectoryW( ret, NULL ) && GetLastError() != ERROR_ALREADY_EXISTS)
{
- WARN( "%s does not exist and could not be created (%u)\n", debugstr_w(ret), GetLastError() );
+ WARN( "%s does not exist and could not be created (%lu)\n", debugstr_w(ret), GetLastError() );
heap_free( ret );
return NULL;
}
@@ -477,7 +477,7 @@ static HRESULT WINAPI InstallCallback_OnStopBinding(IBindStatusCallback *iface,
if(hresult == E_ABORT)
TRACE("Binding aborted\n");
else
- ERR("Binding failed %08x\n", hresult);
+ ERR("Binding failed %08lx\n", hresult);
return S_OK;
}
diff --git a/dlls/appwiz.cpl/appwiz.c b/dlls/appwiz.cpl/appwiz.c
index 410de81043d..593c8644b7e 100644
--- a/dlls/appwiz.cpl/appwiz.c
+++ b/dlls/appwiz.cpl/appwiz.c
@@ -89,7 +89,7 @@ static const WCHAR PathUninstallW[] = L"Software\\Microsoft\\Windows\\CurrentVer
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason,
LPVOID lpvReserved)
{
- TRACE("(%p, %d, %p)\n", hinstDLL, fdwReason, lpvReserved);
+ TRACE("(%p, %ld, %p)\n", hinstDLL, fdwReason, lpvReserved);
switch (fdwReason)
{
More information about the wine-cvs
mailing list