#endif
vsprintf (buf+strlen(buf),format, args);
va_end (args);
- OutputDebugString(buf);
+ OutputDebugStringA(buf);
}
#else
#ifdef DBUS_CPP_SUPPORTS_VARIABLE_MACRO_ARGUMENTS
sprintf(buf,"%s%s",s,msg);
vsprintf(buf,buf,args);
- OutputDebugString(buf);
+ OutputDebugStringA(buf);
if (severity == DBUS_SYSTEM_LOG_FATAL)
exit (1);
RegCloseKey (key_handle);
return NULL;
}
- if (RegQueryValueExW (key_handle, name, 0, &type, result_w, &nbytes))
+ if (RegQueryValueExW (key_handle, name, 0, &type, (LPBYTE) result_w, &nbytes))
{
RegCloseKey (key_handle);
free (result_w);
lpszPath[MAX_PATH - 1] = '\0';
return result;
}
+
+
+void
+OutputDebugStringA (LPCSTR lpOutputString)
+{
+ wchar_t *str;
+ HANDLE result;
+ int err;
+
+ str = _dbus_win_utf8_to_utf16 (lpOutputString, NULL);
+ if (!str)
+ return;
+
+ OutputDebugStringW (str);
+
+ err = GetLastError ();
+ dbus_free (str);
+ SetLastError (err);
+}
BOOL SHGetSpecialFolderPathA(HWND,LPSTR,int,BOOL);
+#define OutputDebugStringA _dbus_wince_OutputDebugStringA
+void OutputDebugStringA(LPCSTR);
+
+
DBUS_END_DECLS
#endif /* DBUS_SYSDEPS_WINCE_GLUE_H */