MSI: avoid unicode.h
Mike McCormack
mike at codeweavers.com
Tue May 31 04:55:15 CDT 2005
ChangeLog:
* avoid unicode.h
* add a missing function prototype
-------------- next part --------------
Index: dlls/msi/msipriv.h
===================================================================
RCS file: /home/wine/wine/dlls/msi/msipriv.h,v
retrieving revision 1.61
diff -u -p -r1.61 msipriv.h
--- dlls/msi/msipriv.h 31 May 2005 09:30:28 -0000 1.61
+++ dlls/msi/msipriv.h 31 May 2005 09:56:16 -0000
@@ -29,7 +29,7 @@
#include "msiquery.h"
#include "objbase.h"
#include "objidl.h"
-#include "wine/unicode.h"
+#include "winnls.h"
#include "wine/list.h"
#define MSI_DATASIZEMASK 0x00ff
@@ -381,6 +381,7 @@ extern UINT MSIREG_OpenUserComponentsKey
extern UINT MSIREG_OpenComponentsKey(LPCWSTR szComponent, HKEY* key, BOOL create);
extern UINT MSIREG_OpenProductsKey(LPCWSTR szProduct, HKEY* key, BOOL create);
extern UINT MSIREG_OpenUserFeaturesKey(LPCWSTR szProduct, HKEY* key, BOOL create);
+extern UINT MSIREG_OpenUserComponentsKey(LPCWSTR szComponent, HKEY* key, BOOL create);
extern UINT MSIREG_OpenUpgradeCodesKey(LPCWSTR szProduct, HKEY* key, BOOL create);
/* msi dialog interface */
@@ -432,8 +433,8 @@ inline static LPWSTR strdupW( LPCWSTR sr
{
LPWSTR dest;
if (!src) return NULL;
- dest = HeapAlloc(GetProcessHeap(), 0, (strlenW(src)+1)*sizeof(WCHAR));
- strcpyW(dest, src);
+ dest = HeapAlloc(GetProcessHeap(), 0, (lstrlenW(src)+1)*sizeof(WCHAR));
+ lstrcpyW(dest, src);
return dest;
}
More information about the wine-patches
mailing list