Commit 8bd9a3aa authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

janitorial: Don't depend on user32 for the self registration functions.

parent 94b87d08
...@@ -33,6 +33,7 @@ ...@@ -33,6 +33,7 @@
#include "amstream.h" #include "amstream.h"
#include "wine/debug.h" #include "wine/debug.h"
#include "wine/unicode.h"
WINE_DEFAULT_DEBUG_CHANNEL(amstream); WINE_DEFAULT_DEBUG_CHANNEL(amstream);
...@@ -159,7 +160,7 @@ static HRESULT register_interfaces(struct regsvr_interface const *list) ...@@ -159,7 +160,7 @@ static HRESULT register_interfaces(struct regsvr_interface const *list)
KEY_READ | KEY_WRITE, NULL, &key, NULL); KEY_READ | KEY_WRITE, NULL, &key, NULL);
if (res != ERROR_SUCCESS) goto error_close_iid_key; if (res != ERROR_SUCCESS) goto error_close_iid_key;
wsprintfW(buf, fmt, list->num_methods); sprintfW(buf, fmt, list->num_methods);
res = RegSetValueExW(key, NULL, 0, REG_SZ, res = RegSetValueExW(key, NULL, 0, REG_SZ,
(CONST BYTE*)buf, (CONST BYTE*)buf,
(lstrlenW(buf) + 1) * sizeof(WCHAR)); (lstrlenW(buf) + 1) * sizeof(WCHAR));
......
...@@ -32,6 +32,7 @@ ...@@ -32,6 +32,7 @@
#include "avifile_private.h" #include "avifile_private.h"
#include "wine/debug.h" #include "wine/debug.h"
#include "wine/unicode.h"
WINE_DEFAULT_DEBUG_CHANNEL(avifile); WINE_DEFAULT_DEBUG_CHANNEL(avifile);
...@@ -158,7 +159,7 @@ static HRESULT register_interfaces(struct regsvr_interface const *list) ...@@ -158,7 +159,7 @@ static HRESULT register_interfaces(struct regsvr_interface const *list)
KEY_READ | KEY_WRITE, NULL, &key, NULL); KEY_READ | KEY_WRITE, NULL, &key, NULL);
if (res != ERROR_SUCCESS) goto error_close_iid_key; if (res != ERROR_SUCCESS) goto error_close_iid_key;
wsprintfW(buf, fmt, list->num_methods); sprintfW(buf, fmt, list->num_methods);
res = RegSetValueExW(key, NULL, 0, REG_SZ, res = RegSetValueExW(key, NULL, 0, REG_SZ,
(CONST BYTE*)buf, (CONST BYTE*)buf,
(lstrlenW(buf) + 1) * sizeof(WCHAR)); (lstrlenW(buf) + 1) * sizeof(WCHAR));
......
...@@ -33,6 +33,7 @@ ...@@ -33,6 +33,7 @@
#include "browseui.h" #include "browseui.h"
#include "wine/debug.h" #include "wine/debug.h"
#include "wine/unicode.h"
WINE_DEFAULT_DEBUG_CHANNEL(browseui); WINE_DEFAULT_DEBUG_CHANNEL(browseui);
...@@ -159,7 +160,7 @@ static HRESULT register_interfaces(struct regsvr_interface const *list) ...@@ -159,7 +160,7 @@ static HRESULT register_interfaces(struct regsvr_interface const *list)
KEY_READ | KEY_WRITE, NULL, &key, NULL); KEY_READ | KEY_WRITE, NULL, &key, NULL);
if (res != ERROR_SUCCESS) goto error_close_iid_key; if (res != ERROR_SUCCESS) goto error_close_iid_key;
wsprintfW(buf, fmt, list->num_methods); sprintfW(buf, fmt, list->num_methods);
res = RegSetValueExW(key, NULL, 0, REG_SZ, res = RegSetValueExW(key, NULL, 0, REG_SZ,
(CONST BYTE*)buf, (CONST BYTE*)buf,
(lstrlenW(buf) + 1) * sizeof(WCHAR)); (lstrlenW(buf) + 1) * sizeof(WCHAR));
......
...@@ -34,6 +34,7 @@ ...@@ -34,6 +34,7 @@
#include "dxfile.h" #include "dxfile.h"
#include "wine/debug.h" #include "wine/debug.h"
#include "wine/unicode.h"
WINE_DEFAULT_DEBUG_CHANNEL(d3dxof); WINE_DEFAULT_DEBUG_CHANNEL(d3dxof);
...@@ -160,7 +161,7 @@ static HRESULT register_interfaces(struct regsvr_interface const *list) ...@@ -160,7 +161,7 @@ static HRESULT register_interfaces(struct regsvr_interface const *list)
KEY_READ | KEY_WRITE, NULL, &key, NULL); KEY_READ | KEY_WRITE, NULL, &key, NULL);
if (res != ERROR_SUCCESS) goto error_close_iid_key; if (res != ERROR_SUCCESS) goto error_close_iid_key;
wsprintfW(buf, fmt, list->num_methods); sprintfW(buf, fmt, list->num_methods);
res = RegSetValueExW(key, NULL, 0, REG_SZ, res = RegSetValueExW(key, NULL, 0, REG_SZ,
(CONST BYTE*)buf, (CONST BYTE*)buf,
(lstrlenW(buf) + 1) * sizeof(WCHAR)); (lstrlenW(buf) + 1) * sizeof(WCHAR));
......
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
#include "ddraw.h" #include "ddraw.h"
#include "wine/debug.h" #include "wine/debug.h"
#include "wine/unicode.h"
WINE_DEFAULT_DEBUG_CHANNEL(ddraw); WINE_DEFAULT_DEBUG_CHANNEL(ddraw);
...@@ -150,7 +151,7 @@ static HRESULT register_interfaces(struct regsvr_interface const *list) ...@@ -150,7 +151,7 @@ static HRESULT register_interfaces(struct regsvr_interface const *list)
KEY_READ | KEY_WRITE, NULL, &key, NULL); KEY_READ | KEY_WRITE, NULL, &key, NULL);
if (res != ERROR_SUCCESS) goto error_close_iid_key; if (res != ERROR_SUCCESS) goto error_close_iid_key;
wsprintfW(buf, fmt, list->num_methods); sprintfW(buf, fmt, list->num_methods);
res = RegSetValueExW(key, NULL, 0, REG_SZ, res = RegSetValueExW(key, NULL, 0, REG_SZ,
(CONST BYTE*)buf, (CONST BYTE*)buf,
(lstrlenW(buf) + 1) * sizeof(WCHAR)); (lstrlenW(buf) + 1) * sizeof(WCHAR));
......
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
#include "dinput.h" #include "dinput.h"
#include "wine/debug.h" #include "wine/debug.h"
#include "wine/unicode.h"
WINE_DEFAULT_DEBUG_CHANNEL(dinput); WINE_DEFAULT_DEBUG_CHANNEL(dinput);
...@@ -157,7 +158,7 @@ static HRESULT register_interfaces(struct regsvr_interface const *list) ...@@ -157,7 +158,7 @@ static HRESULT register_interfaces(struct regsvr_interface const *list)
KEY_READ | KEY_WRITE, NULL, &key, NULL); KEY_READ | KEY_WRITE, NULL, &key, NULL);
if (res != ERROR_SUCCESS) goto error_close_iid_key; if (res != ERROR_SUCCESS) goto error_close_iid_key;
wsprintfW(buf, fmt, list->num_methods); sprintfW(buf, fmt, list->num_methods);
res = RegSetValueExW(key, NULL, 0, REG_SZ, res = RegSetValueExW(key, NULL, 0, REG_SZ,
(CONST BYTE*)buf, (CONST BYTE*)buf,
(lstrlenW(buf) + 1) * sizeof(WCHAR)); (lstrlenW(buf) + 1) * sizeof(WCHAR));
......
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
*/ */
#include "dmband_private.h" #include "dmband_private.h"
#include "wine/unicode.h"
WINE_DEFAULT_DEBUG_CHANNEL(dmband); WINE_DEFAULT_DEBUG_CHANNEL(dmband);
...@@ -142,7 +143,7 @@ static HRESULT register_interfaces(struct regsvr_interface const *list) { ...@@ -142,7 +143,7 @@ static HRESULT register_interfaces(struct regsvr_interface const *list) {
KEY_READ | KEY_WRITE, NULL, &key, NULL); KEY_READ | KEY_WRITE, NULL, &key, NULL);
if (res != ERROR_SUCCESS) goto error_close_iid_key; if (res != ERROR_SUCCESS) goto error_close_iid_key;
wsprintfW(buf, fmt, list->num_methods); sprintfW(buf, fmt, list->num_methods);
res = RegSetValueExW(key, NULL, 0, REG_SZ, res = RegSetValueExW(key, NULL, 0, REG_SZ,
(CONST BYTE*)buf, (CONST BYTE*)buf,
(lstrlenW(buf) + 1) * sizeof(WCHAR)); (lstrlenW(buf) + 1) * sizeof(WCHAR));
......
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
*/ */
#include "dmcompos_private.h" #include "dmcompos_private.h"
#include "wine/unicode.h"
WINE_DEFAULT_DEBUG_CHANNEL(dmcompos); WINE_DEFAULT_DEBUG_CHANNEL(dmcompos);
...@@ -142,7 +143,7 @@ static HRESULT register_interfaces(struct regsvr_interface const *list) { ...@@ -142,7 +143,7 @@ static HRESULT register_interfaces(struct regsvr_interface const *list) {
KEY_READ | KEY_WRITE, NULL, &key, NULL); KEY_READ | KEY_WRITE, NULL, &key, NULL);
if (res != ERROR_SUCCESS) goto error_close_iid_key; if (res != ERROR_SUCCESS) goto error_close_iid_key;
wsprintfW(buf, fmt, list->num_methods); sprintfW(buf, fmt, list->num_methods);
res = RegSetValueExW(key, NULL, 0, REG_SZ, res = RegSetValueExW(key, NULL, 0, REG_SZ,
(CONST BYTE*)buf, (CONST BYTE*)buf,
(lstrlenW(buf) + 1) * sizeof(WCHAR)); (lstrlenW(buf) + 1) * sizeof(WCHAR));
......
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
*/ */
#include "dmime_private.h" #include "dmime_private.h"
#include "wine/unicode.h"
WINE_DEFAULT_DEBUG_CHANNEL(dmime); WINE_DEFAULT_DEBUG_CHANNEL(dmime);
...@@ -142,7 +143,7 @@ static HRESULT register_interfaces(struct regsvr_interface const *list) { ...@@ -142,7 +143,7 @@ static HRESULT register_interfaces(struct regsvr_interface const *list) {
KEY_READ | KEY_WRITE, NULL, &key, NULL); KEY_READ | KEY_WRITE, NULL, &key, NULL);
if (res != ERROR_SUCCESS) goto error_close_iid_key; if (res != ERROR_SUCCESS) goto error_close_iid_key;
wsprintfW(buf, fmt, list->num_methods); sprintfW(buf, fmt, list->num_methods);
res = RegSetValueExW(key, NULL, 0, REG_SZ, res = RegSetValueExW(key, NULL, 0, REG_SZ,
(CONST BYTE*)buf, (CONST BYTE*)buf,
(lstrlenW(buf) + 1) * sizeof(WCHAR)); (lstrlenW(buf) + 1) * sizeof(WCHAR));
......
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
*/ */
#include "dmloader_private.h" #include "dmloader_private.h"
#include "wine/unicode.h"
WINE_DEFAULT_DEBUG_CHANNEL(dmloader); WINE_DEFAULT_DEBUG_CHANNEL(dmloader);
...@@ -142,7 +143,7 @@ static HRESULT register_interfaces(struct regsvr_interface const *list) { ...@@ -142,7 +143,7 @@ static HRESULT register_interfaces(struct regsvr_interface const *list) {
KEY_READ | KEY_WRITE, NULL, &key, NULL); KEY_READ | KEY_WRITE, NULL, &key, NULL);
if (res != ERROR_SUCCESS) goto error_close_iid_key; if (res != ERROR_SUCCESS) goto error_close_iid_key;
wsprintfW(buf, fmt, list->num_methods); sprintfW(buf, fmt, list->num_methods);
res = RegSetValueExW(key, NULL, 0, REG_SZ, res = RegSetValueExW(key, NULL, 0, REG_SZ,
(CONST BYTE*)buf, (CONST BYTE*)buf,
(lstrlenW(buf) + 1) * sizeof(WCHAR)); (lstrlenW(buf) + 1) * sizeof(WCHAR));
......
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
*/ */
#include "dmscript_private.h" #include "dmscript_private.h"
#include "wine/unicode.h"
WINE_DEFAULT_DEBUG_CHANNEL(dmscript); WINE_DEFAULT_DEBUG_CHANNEL(dmscript);
...@@ -142,7 +143,7 @@ static HRESULT register_interfaces(struct regsvr_interface const *list) { ...@@ -142,7 +143,7 @@ static HRESULT register_interfaces(struct regsvr_interface const *list) {
KEY_READ | KEY_WRITE, NULL, &key, NULL); KEY_READ | KEY_WRITE, NULL, &key, NULL);
if (res != ERROR_SUCCESS) goto error_close_iid_key; if (res != ERROR_SUCCESS) goto error_close_iid_key;
wsprintfW(buf, fmt, list->num_methods); sprintfW(buf, fmt, list->num_methods);
res = RegSetValueExW(key, NULL, 0, REG_SZ, res = RegSetValueExW(key, NULL, 0, REG_SZ,
(CONST BYTE*)buf, (CONST BYTE*)buf,
(lstrlenW(buf) + 1) * sizeof(WCHAR)); (lstrlenW(buf) + 1) * sizeof(WCHAR));
......
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
*/ */
#include "dmstyle_private.h" #include "dmstyle_private.h"
#include "wine/unicode.h"
WINE_DEFAULT_DEBUG_CHANNEL(dmstyle); WINE_DEFAULT_DEBUG_CHANNEL(dmstyle);
...@@ -142,7 +143,7 @@ static HRESULT register_interfaces(struct regsvr_interface const *list) { ...@@ -142,7 +143,7 @@ static HRESULT register_interfaces(struct regsvr_interface const *list) {
KEY_READ | KEY_WRITE, NULL, &key, NULL); KEY_READ | KEY_WRITE, NULL, &key, NULL);
if (res != ERROR_SUCCESS) goto error_close_iid_key; if (res != ERROR_SUCCESS) goto error_close_iid_key;
wsprintfW(buf, fmt, list->num_methods); sprintfW(buf, fmt, list->num_methods);
res = RegSetValueExW(key, NULL, 0, REG_SZ, res = RegSetValueExW(key, NULL, 0, REG_SZ,
(CONST BYTE*)buf, (CONST BYTE*)buf,
(lstrlenW(buf) + 1) * sizeof(WCHAR)); (lstrlenW(buf) + 1) * sizeof(WCHAR));
......
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
*/ */
#include "dmsynth_private.h" #include "dmsynth_private.h"
#include "wine/unicode.h"
WINE_DEFAULT_DEBUG_CHANNEL(dmsynth); WINE_DEFAULT_DEBUG_CHANNEL(dmsynth);
...@@ -142,7 +143,7 @@ static HRESULT register_interfaces(struct regsvr_interface const *list) { ...@@ -142,7 +143,7 @@ static HRESULT register_interfaces(struct regsvr_interface const *list) {
KEY_READ | KEY_WRITE, NULL, &key, NULL); KEY_READ | KEY_WRITE, NULL, &key, NULL);
if (res != ERROR_SUCCESS) goto error_close_iid_key; if (res != ERROR_SUCCESS) goto error_close_iid_key;
wsprintfW(buf, fmt, list->num_methods); sprintfW(buf, fmt, list->num_methods);
res = RegSetValueExW(key, NULL, 0, REG_SZ, res = RegSetValueExW(key, NULL, 0, REG_SZ,
(CONST BYTE*)buf, (CONST BYTE*)buf,
(lstrlenW(buf) + 1) * sizeof(WCHAR)); (lstrlenW(buf) + 1) * sizeof(WCHAR));
......
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
*/ */
#include "dmusic_private.h" #include "dmusic_private.h"
#include "wine/unicode.h"
WINE_DEFAULT_DEBUG_CHANNEL(dmusic); WINE_DEFAULT_DEBUG_CHANNEL(dmusic);
...@@ -142,7 +143,7 @@ static HRESULT register_interfaces(struct regsvr_interface const *list) { ...@@ -142,7 +143,7 @@ static HRESULT register_interfaces(struct regsvr_interface const *list) {
KEY_READ | KEY_WRITE, NULL, &key, NULL); KEY_READ | KEY_WRITE, NULL, &key, NULL);
if (res != ERROR_SUCCESS) goto error_close_iid_key; if (res != ERROR_SUCCESS) goto error_close_iid_key;
wsprintfW(buf, fmt, list->num_methods); sprintfW(buf, fmt, list->num_methods);
res = RegSetValueExW(key, NULL, 0, REG_SZ, res = RegSetValueExW(key, NULL, 0, REG_SZ,
(CONST BYTE*)buf, (CONST BYTE*)buf,
(lstrlenW(buf) + 1) * sizeof(WCHAR)); (lstrlenW(buf) + 1) * sizeof(WCHAR));
......
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
#include "dplobby.h" #include "dplobby.h"
#include "wine/debug.h" #include "wine/debug.h"
#include "wine/unicode.h"
WINE_DEFAULT_DEBUG_CHANNEL(dplay); WINE_DEFAULT_DEBUG_CHANNEL(dplay);
...@@ -157,7 +158,7 @@ static HRESULT register_interfaces(struct regsvr_interface const *list) ...@@ -157,7 +158,7 @@ static HRESULT register_interfaces(struct regsvr_interface const *list)
KEY_READ | KEY_WRITE, NULL, &key, NULL); KEY_READ | KEY_WRITE, NULL, &key, NULL);
if (res != ERROR_SUCCESS) goto error_close_iid_key; if (res != ERROR_SUCCESS) goto error_close_iid_key;
wsprintfW(buf, fmt, list->num_methods); sprintfW(buf, fmt, list->num_methods);
res = RegSetValueExW(key, NULL, 0, REG_SZ, res = RegSetValueExW(key, NULL, 0, REG_SZ,
(CONST BYTE*)buf, (CONST BYTE*)buf,
(lstrlenW(buf) + 1) * sizeof(WCHAR)); (lstrlenW(buf) + 1) * sizeof(WCHAR));
......
...@@ -33,6 +33,7 @@ ...@@ -33,6 +33,7 @@
#include "dplobby8.h" #include "dplobby8.h"
#include "wine/debug.h" #include "wine/debug.h"
#include "wine/unicode.h"
WINE_DEFAULT_DEBUG_CHANNEL(dpnet); WINE_DEFAULT_DEBUG_CHANNEL(dpnet);
...@@ -159,7 +160,7 @@ static HRESULT register_interfaces(struct regsvr_interface const *list) ...@@ -159,7 +160,7 @@ static HRESULT register_interfaces(struct regsvr_interface const *list)
KEY_READ | KEY_WRITE, NULL, &key, NULL); KEY_READ | KEY_WRITE, NULL, &key, NULL);
if (res != ERROR_SUCCESS) goto error_close_iid_key; if (res != ERROR_SUCCESS) goto error_close_iid_key;
wsprintfW(buf, fmt, list->num_methods); sprintfW(buf, fmt, list->num_methods);
res = RegSetValueExW(key, NULL, 0, REG_SZ, res = RegSetValueExW(key, NULL, 0, REG_SZ,
(CONST BYTE*)buf, (CONST BYTE*)buf,
(lstrlenW(buf) + 1) * sizeof(WCHAR)); (lstrlenW(buf) + 1) * sizeof(WCHAR));
......
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
#include "dsound.h" #include "dsound.h"
#include "wine/debug.h" #include "wine/debug.h"
#include "wine/unicode.h"
WINE_DEFAULT_DEBUG_CHANNEL(dsound); WINE_DEFAULT_DEBUG_CHANNEL(dsound);
...@@ -160,7 +161,7 @@ static HRESULT register_interfaces(struct regsvr_interface const *list) ...@@ -160,7 +161,7 @@ static HRESULT register_interfaces(struct regsvr_interface const *list)
KEY_READ | KEY_WRITE, NULL, &key, NULL); KEY_READ | KEY_WRITE, NULL, &key, NULL);
if (res != ERROR_SUCCESS) goto error_close_iid_key; if (res != ERROR_SUCCESS) goto error_close_iid_key;
wsprintfW(buf, fmt, list->num_methods); sprintfW(buf, fmt, list->num_methods);
res = RegSetValueExW(key, NULL, 0, REG_SZ, res = RegSetValueExW(key, NULL, 0, REG_SZ,
(CONST BYTE*)buf, (CONST BYTE*)buf,
(lstrlenW(buf) + 1) * sizeof(WCHAR)); (lstrlenW(buf) + 1) * sizeof(WCHAR));
......
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
*/ */
#include "dswave_private.h" #include "dswave_private.h"
#include "wine/unicode.h"
WINE_DEFAULT_DEBUG_CHANNEL(dswave); WINE_DEFAULT_DEBUG_CHANNEL(dswave);
...@@ -142,7 +143,7 @@ static HRESULT register_interfaces(struct regsvr_interface const *list) { ...@@ -142,7 +143,7 @@ static HRESULT register_interfaces(struct regsvr_interface const *list) {
KEY_READ | KEY_WRITE, NULL, &key, NULL); KEY_READ | KEY_WRITE, NULL, &key, NULL);
if (res != ERROR_SUCCESS) goto error_close_iid_key; if (res != ERROR_SUCCESS) goto error_close_iid_key;
wsprintfW(buf, fmt, list->num_methods); sprintfW(buf, fmt, list->num_methods);
res = RegSetValueExW(key, NULL, 0, REG_SZ, res = RegSetValueExW(key, NULL, 0, REG_SZ,
(CONST BYTE*)buf, (CONST BYTE*)buf,
(lstrlenW(buf) + 1) * sizeof(WCHAR)); (lstrlenW(buf) + 1) * sizeof(WCHAR));
......
...@@ -30,7 +30,9 @@ ...@@ -30,7 +30,9 @@
#include "initguid.h" #include "initguid.h"
#include "dxdiag_private.h" #include "dxdiag_private.h"
#include "wine/debug.h" #include "wine/debug.h"
#include "wine/unicode.h"
WINE_DEFAULT_DEBUG_CHANNEL(dxdiag); WINE_DEFAULT_DEBUG_CHANNEL(dxdiag);
...@@ -157,7 +159,7 @@ static HRESULT register_interfaces(struct regsvr_interface const *list) ...@@ -157,7 +159,7 @@ static HRESULT register_interfaces(struct regsvr_interface const *list)
KEY_READ | KEY_WRITE, NULL, &key, NULL); KEY_READ | KEY_WRITE, NULL, &key, NULL);
if (res != ERROR_SUCCESS) goto error_close_iid_key; if (res != ERROR_SUCCESS) goto error_close_iid_key;
wsprintfW(buf, fmt, list->num_methods); sprintfW(buf, fmt, list->num_methods);
res = RegSetValueExW(key, NULL, 0, REG_SZ, res = RegSetValueExW(key, NULL, 0, REG_SZ,
(CONST BYTE*)buf, (CONST BYTE*)buf,
(lstrlenW(buf) + 1) * sizeof(WCHAR)); (lstrlenW(buf) + 1) * sizeof(WCHAR));
......
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
#include "ole2.h" #include "ole2.h"
#include "wine/debug.h" #include "wine/debug.h"
#include "wine/unicode.h"
WINE_DEFAULT_DEBUG_CHANNEL(htmlhelp); WINE_DEFAULT_DEBUG_CHANNEL(htmlhelp);
...@@ -157,7 +158,7 @@ static HRESULT register_interfaces(struct regsvr_interface const *list) ...@@ -157,7 +158,7 @@ static HRESULT register_interfaces(struct regsvr_interface const *list)
KEY_READ | KEY_WRITE, NULL, &key, NULL); KEY_READ | KEY_WRITE, NULL, &key, NULL);
if (res != ERROR_SUCCESS) goto error_close_iid_key; if (res != ERROR_SUCCESS) goto error_close_iid_key;
wsprintfW(buf, fmt, list->num_methods); sprintfW(buf, fmt, list->num_methods);
res = RegSetValueExW(key, NULL, 0, REG_SZ, res = RegSetValueExW(key, NULL, 0, REG_SZ,
(CONST BYTE*)buf, (CONST BYTE*)buf,
(lstrlenW(buf) + 1) * sizeof(WCHAR)); (lstrlenW(buf) + 1) * sizeof(WCHAR));
......
...@@ -35,6 +35,7 @@ ...@@ -35,6 +35,7 @@
#include "inetcomm_private.h" #include "inetcomm_private.h"
#include "wine/debug.h" #include "wine/debug.h"
#include "wine/unicode.h"
WINE_DEFAULT_DEBUG_CHANNEL(inetcomm); WINE_DEFAULT_DEBUG_CHANNEL(inetcomm);
...@@ -151,7 +152,7 @@ static HRESULT register_interfaces(struct regsvr_interface const *list) ...@@ -151,7 +152,7 @@ static HRESULT register_interfaces(struct regsvr_interface const *list)
KEY_READ | KEY_WRITE, NULL, &key, NULL); KEY_READ | KEY_WRITE, NULL, &key, NULL);
if (res != ERROR_SUCCESS) goto error_close_iid_key; if (res != ERROR_SUCCESS) goto error_close_iid_key;
wsprintfW(buf, fmt, list->num_methods); sprintfW(buf, fmt, list->num_methods);
res = RegSetValueExW(key, NULL, 0, REG_SZ, res = RegSetValueExW(key, NULL, 0, REG_SZ,
(CONST BYTE*)buf, (CONST BYTE*)buf,
(lstrlenW(buf) + 1) * sizeof(WCHAR)); (lstrlenW(buf) + 1) * sizeof(WCHAR));
......
...@@ -33,6 +33,7 @@ ...@@ -33,6 +33,7 @@
#include "initguid.h" #include "initguid.h"
#include "wine/debug.h" #include "wine/debug.h"
#include "wine/unicode.h"
WINE_DEFAULT_DEBUG_CHANNEL(inseng); WINE_DEFAULT_DEBUG_CHANNEL(inseng);
...@@ -162,7 +163,7 @@ static HRESULT register_interfaces(struct regsvr_interface const *list) ...@@ -162,7 +163,7 @@ static HRESULT register_interfaces(struct regsvr_interface const *list)
KEY_READ | KEY_WRITE, NULL, &key, NULL); KEY_READ | KEY_WRITE, NULL, &key, NULL);
if (res != ERROR_SUCCESS) goto error_close_iid_key; if (res != ERROR_SUCCESS) goto error_close_iid_key;
wsprintfW(buf, fmt, list->num_methods); sprintfW(buf, fmt, list->num_methods);
res = RegSetValueExW(key, NULL, 0, REG_SZ, res = RegSetValueExW(key, NULL, 0, REG_SZ,
(CONST BYTE*)buf, (CONST BYTE*)buf,
(lstrlenW(buf) + 1) * sizeof(WCHAR)); (lstrlenW(buf) + 1) * sizeof(WCHAR));
......
...@@ -33,6 +33,8 @@ ...@@ -33,6 +33,8 @@
#include "mlang.h" #include "mlang.h"
#include "wine/debug.h" #include "wine/debug.h"
#include "wine/unicode.h"
#include "initguid.h" #include "initguid.h"
WINE_DEFAULT_DEBUG_CHANNEL(mlang); WINE_DEFAULT_DEBUG_CHANNEL(mlang);
...@@ -163,7 +165,7 @@ static HRESULT register_interfaces(struct regsvr_interface const *list) ...@@ -163,7 +165,7 @@ static HRESULT register_interfaces(struct regsvr_interface const *list)
KEY_READ | KEY_WRITE, NULL, &key, NULL); KEY_READ | KEY_WRITE, NULL, &key, NULL);
if (res != ERROR_SUCCESS) goto error_close_iid_key; if (res != ERROR_SUCCESS) goto error_close_iid_key;
wsprintfW(buf, fmt, list->num_methods); sprintfW(buf, fmt, list->num_methods);
res = RegSetValueExW(key, NULL, 0, REG_SZ, res = RegSetValueExW(key, NULL, 0, REG_SZ,
(CONST BYTE*)buf, (CONST BYTE*)buf,
(lstrlenW(buf) + 1) * sizeof(WCHAR)); (lstrlenW(buf) + 1) * sizeof(WCHAR));
......
...@@ -36,6 +36,7 @@ ...@@ -36,6 +36,7 @@
#include "oleauto.h" #include "oleauto.h"
#include "wine/debug.h" #include "wine/debug.h"
#include "wine/unicode.h"
#include "msi.h" #include "msi.h"
#include "initguid.h" #include "initguid.h"
...@@ -179,7 +180,7 @@ static HRESULT register_interfaces(struct regsvr_interface const *list) { ...@@ -179,7 +180,7 @@ static HRESULT register_interfaces(struct regsvr_interface const *list) {
KEY_READ | KEY_WRITE, NULL, &key, NULL); KEY_READ | KEY_WRITE, NULL, &key, NULL);
if (res != ERROR_SUCCESS) goto error_close_iid_key; if (res != ERROR_SUCCESS) goto error_close_iid_key;
wsprintfW(buf, fmt, list->num_methods); sprintfW(buf, fmt, list->num_methods);
res = RegSetValueExW(key, NULL, 0, REG_SZ, res = RegSetValueExW(key, NULL, 0, REG_SZ,
(CONST BYTE*)buf, (CONST BYTE*)buf,
(lstrlenW(buf) + 1) * sizeof(WCHAR)); (lstrlenW(buf) + 1) * sizeof(WCHAR));
......
...@@ -45,6 +45,7 @@ ...@@ -45,6 +45,7 @@
#include "msxml_private.h" #include "msxml_private.h"
#include "wine/debug.h" #include "wine/debug.h"
#include "wine/unicode.h"
WINE_DEFAULT_DEBUG_CHANNEL(ole); WINE_DEFAULT_DEBUG_CHANNEL(ole);
...@@ -180,7 +181,7 @@ static HRESULT register_interfaces(struct regsvr_interface const *list) ...@@ -180,7 +181,7 @@ static HRESULT register_interfaces(struct regsvr_interface const *list)
KEY_READ | KEY_WRITE, NULL, &key, NULL); KEY_READ | KEY_WRITE, NULL, &key, NULL);
if (res != ERROR_SUCCESS) goto error_close_iid_key; if (res != ERROR_SUCCESS) goto error_close_iid_key;
wsprintfW(buf, fmt, list->num_methods); sprintfW(buf, fmt, list->num_methods);
res = RegSetValueExW(key, NULL, 0, REG_SZ, res = RegSetValueExW(key, NULL, 0, REG_SZ,
(CONST BYTE*)buf, (CONST BYTE*)buf,
(lstrlenW(buf) + 1) * sizeof(WCHAR)); (lstrlenW(buf) + 1) * sizeof(WCHAR));
......
...@@ -34,6 +34,7 @@ ...@@ -34,6 +34,7 @@
#include "objsel.h" #include "objsel.h"
#include "wine/debug.h" #include "wine/debug.h"
#include "wine/unicode.h"
#include "initguid.h" #include "initguid.h"
...@@ -168,7 +169,7 @@ static HRESULT register_interfaces(struct regsvr_interface const *list) { ...@@ -168,7 +169,7 @@ static HRESULT register_interfaces(struct regsvr_interface const *list) {
KEY_READ | KEY_WRITE, NULL, &key, NULL); KEY_READ | KEY_WRITE, NULL, &key, NULL);
if (res != ERROR_SUCCESS) goto error_close_iid_key; if (res != ERROR_SUCCESS) goto error_close_iid_key;
wsprintfW(buf, fmt, list->num_methods); sprintfW(buf, fmt, list->num_methods);
res = RegSetValueExW(key, NULL, 0, REG_SZ, res = RegSetValueExW(key, NULL, 0, REG_SZ,
(CONST BYTE*)buf, (CONST BYTE*)buf,
(lstrlenW(buf) + 1) * sizeof(WCHAR)); (lstrlenW(buf) + 1) * sizeof(WCHAR));
......
...@@ -38,6 +38,7 @@ ...@@ -38,6 +38,7 @@
#include "moniker.h" #include "moniker.h"
#include "wine/debug.h" #include "wine/debug.h"
#include "wine/unicode.h"
WINE_DEFAULT_DEBUG_CHANNEL(ole); WINE_DEFAULT_DEBUG_CHANNEL(ole);
...@@ -155,7 +156,7 @@ static HRESULT register_interfaces(struct regsvr_interface const *list) ...@@ -155,7 +156,7 @@ static HRESULT register_interfaces(struct regsvr_interface const *list)
KEY_READ | KEY_WRITE, NULL, &key, NULL); KEY_READ | KEY_WRITE, NULL, &key, NULL);
if (res != ERROR_SUCCESS) goto error_close_iid_key; if (res != ERROR_SUCCESS) goto error_close_iid_key;
wsprintfW(buf, fmt, list->num_methods); sprintfW(buf, fmt, list->num_methods);
res = RegSetValueExW(key, NULL, 0, REG_SZ, res = RegSetValueExW(key, NULL, 0, REG_SZ,
(CONST BYTE*)buf, (CONST BYTE*)buf,
(lstrlenW(buf) + 1) * sizeof(WCHAR)); (lstrlenW(buf) + 1) * sizeof(WCHAR));
......
...@@ -34,6 +34,7 @@ ...@@ -34,6 +34,7 @@
#include "typelib.h" #include "typelib.h"
#include "wine/debug.h" #include "wine/debug.h"
#include "wine/unicode.h"
WINE_DEFAULT_DEBUG_CHANNEL(ole); WINE_DEFAULT_DEBUG_CHANNEL(ole);
...@@ -150,7 +151,7 @@ static HRESULT register_interfaces(struct regsvr_interface const *list) ...@@ -150,7 +151,7 @@ static HRESULT register_interfaces(struct regsvr_interface const *list)
KEY_READ | KEY_WRITE, NULL, &key, NULL); KEY_READ | KEY_WRITE, NULL, &key, NULL);
if (res != ERROR_SUCCESS) goto error_close_iid_key; if (res != ERROR_SUCCESS) goto error_close_iid_key;
wsprintfW(buf, fmt, list->num_methods); sprintfW(buf, fmt, list->num_methods);
res = RegSetValueExW(key, NULL, 0, REG_SZ, res = RegSetValueExW(key, NULL, 0, REG_SZ,
(CONST BYTE*)buf, (CONST BYTE*)buf,
(lstrlenW(buf) + 1) * sizeof(WCHAR)); (lstrlenW(buf) + 1) * sizeof(WCHAR));
......
...@@ -36,6 +36,7 @@ ...@@ -36,6 +36,7 @@
#include "strmif.h" #include "strmif.h"
#include "wine/debug.h" #include "wine/debug.h"
#include "wine/unicode.h"
WINE_DEFAULT_DEBUG_CHANNEL(quartz); WINE_DEFAULT_DEBUG_CHANNEL(quartz);
...@@ -215,7 +216,7 @@ static HRESULT register_interfaces(struct regsvr_interface const *list) ...@@ -215,7 +216,7 @@ static HRESULT register_interfaces(struct regsvr_interface const *list)
KEY_READ | KEY_WRITE, NULL, &key, NULL); KEY_READ | KEY_WRITE, NULL, &key, NULL);
if (res != ERROR_SUCCESS) goto error_close_iid_key; if (res != ERROR_SUCCESS) goto error_close_iid_key;
wsprintfW(buf, fmt, list->num_methods); sprintfW(buf, fmt, list->num_methods);
res = RegSetValueExW(key, NULL, 0, REG_SZ, res = RegSetValueExW(key, NULL, 0, REG_SZ,
(CONST BYTE*)buf, (CONST BYTE*)buf,
(lstrlenW(buf) + 1) * sizeof(WCHAR)); (lstrlenW(buf) + 1) * sizeof(WCHAR));
......
/* /*
* self-registerable dll functions for shell32.dll * self-registerable dll functions for shell32.dll
* *
* Copyright (C) 2003 John K. Hohm * Copyright (C) 2003 John K. Hohm
* *
* This library is free software; you can redistribute it and/or * This library is free software; you can redistribute it and/or
...@@ -37,6 +37,7 @@ ...@@ -37,6 +37,7 @@
#include "shfldr.h" #include "shfldr.h"
#include "wine/debug.h" #include "wine/debug.h"
#include "wine/unicode.h"
WINE_DEFAULT_DEBUG_CHANNEL(ole); WINE_DEFAULT_DEBUG_CHANNEL(ole);
...@@ -191,7 +192,7 @@ static HRESULT register_interfaces(struct regsvr_interface const *list) ...@@ -191,7 +192,7 @@ static HRESULT register_interfaces(struct regsvr_interface const *list)
KEY_READ | KEY_WRITE, NULL, &key, NULL); KEY_READ | KEY_WRITE, NULL, &key, NULL);
if (res != ERROR_SUCCESS) goto error_close_iid_key; if (res != ERROR_SUCCESS) goto error_close_iid_key;
wsprintfW(buf, fmt, list->num_methods); sprintfW(buf, fmt, list->num_methods);
res = RegSetValueExW(key, NULL, 0, REG_SZ, res = RegSetValueExW(key, NULL, 0, REG_SZ,
(CONST BYTE*)buf, (CONST BYTE*)buf,
(lstrlenW(buf) + 1) * sizeof(WCHAR)); (lstrlenW(buf) + 1) * sizeof(WCHAR));
......
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
#include "advpub.h" #include "advpub.h"
#include "wine/debug.h" #include "wine/debug.h"
#include "wine/unicode.h"
WINE_DEFAULT_DEBUG_CHANNEL(urlmon); WINE_DEFAULT_DEBUG_CHANNEL(urlmon);
...@@ -152,7 +153,7 @@ static HRESULT register_interfaces(struct regsvr_interface const *list) ...@@ -152,7 +153,7 @@ static HRESULT register_interfaces(struct regsvr_interface const *list)
KEY_READ | KEY_WRITE, NULL, &key, NULL); KEY_READ | KEY_WRITE, NULL, &key, NULL);
if (res != ERROR_SUCCESS) goto error_close_iid_key; if (res != ERROR_SUCCESS) goto error_close_iid_key;
wsprintfW(buf, fmt, list->num_methods); sprintfW(buf, fmt, list->num_methods);
res = RegSetValueExW(key, NULL, 0, REG_SZ, res = RegSetValueExW(key, NULL, 0, REG_SZ,
(CONST BYTE*)buf, (CONST BYTE*)buf,
(lstrlenW(buf) + 1) * sizeof(WCHAR)); (lstrlenW(buf) + 1) * sizeof(WCHAR));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment