Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
f4a8ad89
Commit
f4a8ad89
authored
Jul 04, 2023
by
Alex Henrie
Committed by
Alexandre Julliard
Jul 04, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Introduce wine_dbgstr_hstring and debugstr_hstring.
parent
7e366d46
Show whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
13 additions
and
153 deletions
+13
-153
roapi.c
dlls/combase/roapi.c
+0
-9
main.c
dlls/cryptowinrt/main.c
+0
-9
private.h
dlls/cryptowinrt/private.h
+0
-2
main.c
dlls/graphicscapture/main.c
+0
-9
main.c
dlls/threadpoolwinrt/main.c
+0
-9
main.c
dlls/windows.devices.bluetooth/main.c
+0
-9
private.h
dlls/windows.devices.bluetooth/private.h
+0
-2
bluetooth.c
dlls/windows.devices.bluetooth/tests/bluetooth.c
+0
-9
main.c
dlls/windows.devices.enumeration/main.c
+0
-9
private.h
dlls/windows.devices.enumeration/private.h
+0
-2
main.c
dlls/windows.globalization/main.c
+0
-9
main.c
dlls/windows.media.devices/main.c
+0
-9
speech.c
dlls/windows.media.speech/tests/speech.c
+0
-9
captions.c
dlls/windows.media/captions.c
+0
-9
private.h
dlls/windows.media/private.h
+0
-2
main.c
dlls/windows.networking/main.c
+0
-9
main.c
dlls/windows.perception.stub/main.c
+0
-9
main.c
dlls/windows.system.profile.systemmanufacturers/main.c
+0
-9
main.c
dlls/windows.ui/main.c
+0
-9
main.c
dlls/wintypes/main.c
+0
-10
debug.h
include/wine/debug.h
+13
-0
No files found.
dlls/combase/roapi.c
View file @
f4a8ad89
...
...
@@ -28,15 +28,6 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
combase
);
static
const
char
*
debugstr_hstring
(
HSTRING
hstr
)
{
const
WCHAR
*
str
;
UINT32
len
;
if
(
hstr
&&
!
((
ULONG_PTR
)
hstr
>>
16
))
return
"(invalid)"
;
str
=
WindowsGetStringRawBuffer
(
hstr
,
&
len
);
return
wine_dbgstr_wn
(
str
,
len
);
}
struct
activatable_class_data
{
ULONG
size
;
...
...
dlls/cryptowinrt/main.c
View file @
f4a8ad89
...
...
@@ -31,15 +31,6 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
crypto
);
const
char
*
debugstr_hstring
(
HSTRING
hstr
)
{
const
WCHAR
*
str
;
UINT32
len
;
if
(
hstr
&&
!
((
ULONG_PTR
)
hstr
>>
16
))
return
"(invalid)"
;
str
=
WindowsGetStringRawBuffer
(
hstr
,
&
len
);
return
wine_dbgstr_wn
(
str
,
len
);
}
struct
cryptobuffer_factory
{
IActivationFactory
IActivationFactory_iface
;
...
...
dlls/cryptowinrt/private.h
View file @
f4a8ad89
...
...
@@ -39,8 +39,6 @@
#include "provider.h"
extern
const
char
*
debugstr_hstring
(
HSTRING
hstr
);
extern
IActivationFactory
*
credentials_activation_factory
;
typedef
HRESULT
(
WINAPI
*
async_operation_callback
)(
IUnknown
*
invoker
,
IUnknown
*
param
,
PROPVARIANT
*
result
);
...
...
dlls/graphicscapture/main.c
View file @
f4a8ad89
...
...
@@ -24,15 +24,6 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
graphicscapture
);
static
const
char
*
debugstr_hstring
(
HSTRING
hstr
)
{
const
WCHAR
*
str
;
UINT32
len
;
if
(
hstr
&&
!
((
ULONG_PTR
)
hstr
>>
16
))
return
"(invalid)"
;
str
=
WindowsGetStringRawBuffer
(
hstr
,
&
len
);
return
wine_dbgstr_wn
(
str
,
len
);
}
HRESULT
WINAPI
DllGetActivationFactory
(
HSTRING
classid
,
IActivationFactory
**
factory
)
{
const
WCHAR
*
buffer
=
WindowsGetStringRawBuffer
(
classid
,
NULL
);
...
...
dlls/threadpoolwinrt/main.c
View file @
f4a8ad89
...
...
@@ -37,15 +37,6 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
threadpool
);
static
const
char
*
debugstr_hstring
(
HSTRING
hstr
)
{
const
WCHAR
*
str
;
UINT32
len
;
if
(
hstr
&&
!
((
ULONG_PTR
)
hstr
>>
16
))
return
"(invalid)"
;
str
=
WindowsGetStringRawBuffer
(
hstr
,
&
len
);
return
wine_dbgstr_wn
(
str
,
len
);
}
struct
threadpool_factory
{
IActivationFactory
IActivationFactory_iface
;
...
...
dlls/windows.devices.bluetooth/main.c
View file @
f4a8ad89
...
...
@@ -24,15 +24,6 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
bluetooth
);
const
char
*
debugstr_hstring
(
HSTRING
hstr
)
{
const
WCHAR
*
str
;
UINT32
len
;
if
(
hstr
&&
!
((
ULONG_PTR
)
hstr
>>
16
))
return
"(invalid)"
;
str
=
WindowsGetStringRawBuffer
(
hstr
,
&
len
);
return
wine_dbgstr_wn
(
str
,
len
);
}
HRESULT
WINAPI
DllGetClassObject
(
REFCLSID
clsid
,
REFIID
riid
,
void
**
out
)
{
FIXME
(
"clsid %s, riid %s, out %p stub!
\n
"
,
debugstr_guid
(
clsid
),
debugstr_guid
(
riid
),
out
);
...
...
dlls/windows.devices.bluetooth/private.h
View file @
f4a8ad89
...
...
@@ -35,8 +35,6 @@
#define WIDL_using_Windows_Devices_Bluetooth
#include "windows.devices.bluetooth.h"
extern
const
char
*
debugstr_hstring
(
HSTRING
hstr
);
extern
IActivationFactory
*
bluetoothadapter_factory
;
#define DEFINE_IINSPECTABLE_( pfx, iface_type, impl_type, impl_from, iface_mem, expr ) \
...
...
dlls/windows.devices.bluetooth/tests/bluetooth.c
View file @
f4a8ad89
...
...
@@ -34,15 +34,6 @@
#include "wine/test.h"
const
char
*
debugstr_hstring
(
HSTRING
hstr
)
{
const
WCHAR
*
str
;
UINT32
len
;
if
(
hstr
&&
!
((
ULONG_PTR
)
hstr
>>
16
))
return
"(invalid)"
;
str
=
WindowsGetStringRawBuffer
(
hstr
,
&
len
);
return
wine_dbgstr_wn
(
str
,
len
);
}
#define check_interface( obj, iid ) check_interface_( __LINE__, obj, iid )
static
void
check_interface_
(
unsigned
int
line
,
void
*
obj
,
const
IID
*
iid
)
{
...
...
dlls/windows.devices.enumeration/main.c
View file @
f4a8ad89
...
...
@@ -25,15 +25,6 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
enumeration
);
const
char
*
debugstr_hstring
(
HSTRING
hstr
)
{
const
WCHAR
*
str
;
UINT32
len
;
if
(
hstr
&&
!
((
ULONG_PTR
)
hstr
>>
16
))
return
"(invalid)"
;
str
=
WindowsGetStringRawBuffer
(
hstr
,
&
len
);
return
wine_dbgstr_wn
(
str
,
len
);
}
struct
device_watcher
{
IDeviceWatcher
IDeviceWatcher_iface
;
...
...
dlls/windows.devices.enumeration/private.h
View file @
f4a8ad89
...
...
@@ -41,8 +41,6 @@
extern
IActivationFactory
*
device_access_factory
;
extern
const
char
*
debugstr_hstring
(
HSTRING
hstr
);
HRESULT
typed_event_handlers_append
(
struct
list
*
list
,
ITypedEventHandler_IInspectable_IInspectable
*
handler
,
EventRegistrationToken
*
token
);
HRESULT
typed_event_handlers_remove
(
struct
list
*
list
,
EventRegistrationToken
*
token
);
HRESULT
typed_event_handlers_notify
(
struct
list
*
list
,
IInspectable
*
sender
,
IInspectable
*
args
);
...
...
dlls/windows.globalization/main.c
View file @
f4a8ad89
...
...
@@ -39,15 +39,6 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
locale
);
static
const
char
*
debugstr_hstring
(
HSTRING
hstr
)
{
const
WCHAR
*
str
;
UINT32
len
;
if
(
hstr
&&
!
((
ULONG_PTR
)
hstr
>>
16
))
return
"(invalid)"
;
str
=
WindowsGetStringRawBuffer
(
hstr
,
&
len
);
return
wine_dbgstr_wn
(
str
,
len
);
}
struct
hstring_vector
{
IVectorView_HSTRING
IVectorView_HSTRING_iface
;
...
...
dlls/windows.media.devices/main.c
View file @
f4a8ad89
...
...
@@ -39,15 +39,6 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
mmdevapi
);
static
const
char
*
debugstr_hstring
(
HSTRING
hstr
)
{
const
WCHAR
*
str
;
UINT32
len
;
if
(
hstr
&&
!
((
ULONG_PTR
)
hstr
>>
16
))
return
"(invalid)"
;
str
=
WindowsGetStringRawBuffer
(
hstr
,
&
len
);
return
wine_dbgstr_wn
(
str
,
len
);
}
static
ERole
AudioDeviceRole_to_ERole
(
AudioDeviceRole
role
)
{
switch
(
role
){
...
...
dlls/windows.media.speech/tests/speech.c
View file @
f4a8ad89
...
...
@@ -91,15 +91,6 @@ static void check_interface_(unsigned int line, void *obj, const IID *iid, BOOL
IUnknown_Release
(
unk
);
}
static
const
char
*
debugstr_hstring
(
HSTRING
hstr
)
{
const
WCHAR
*
str
;
UINT32
len
;
if
(
hstr
&&
!
((
ULONG_PTR
)
hstr
>>
16
))
return
"(invalid)"
;
str
=
WindowsGetStringRawBuffer
(
hstr
,
&
len
);
return
wine_dbgstr_wn
(
str
,
len
);
}
struct
completed_event_handler
{
IHandler_RecognitionCompleted
IHandler_RecognitionCompleted_iface
;
...
...
dlls/windows.media/captions.c
View file @
f4a8ad89
...
...
@@ -23,15 +23,6 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
media
);
const
char
*
debugstr_hstring
(
HSTRING
hstr
)
{
const
WCHAR
*
str
;
UINT32
len
;
if
(
hstr
&&
!
((
ULONG_PTR
)
hstr
>>
16
))
return
"(invalid)"
;
str
=
WindowsGetStringRawBuffer
(
hstr
,
&
len
);
return
wine_dbgstr_wn
(
str
,
len
);
}
struct
captions_statics
{
IActivationFactory
IActivationFactory_iface
;
...
...
dlls/windows.media/private.h
View file @
f4a8ad89
...
...
@@ -37,8 +37,6 @@
#define WIDL_using_Windows_Media_ClosedCaptioning
#include "windows.media.closedcaptioning.h"
extern
const
char
*
debugstr_hstring
(
HSTRING
hstr
);
extern
IActivationFactory
*
captions_factory
;
#define DEFINE_IINSPECTABLE_( pfx, iface_type, impl_type, impl_from, iface_mem, expr ) \
...
...
dlls/windows.networking/main.c
View file @
f4a8ad89
...
...
@@ -23,15 +23,6 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
winsock
);
static
const
char
*
debugstr_hstring
(
HSTRING
hstr
)
{
const
WCHAR
*
str
;
UINT32
len
;
if
(
hstr
&&
!
((
ULONG_PTR
)
hstr
>>
16
))
return
"(invalid)"
;
str
=
WindowsGetStringRawBuffer
(
hstr
,
&
len
);
return
wine_dbgstr_wn
(
str
,
len
);
}
HRESULT
WINAPI
SetSocketMediaStreamingMode
(
BOOL
value
)
{
FIXME
(
"value %d stub!
\n
"
,
value
);
...
...
dlls/windows.perception.stub/main.c
View file @
f4a8ad89
...
...
@@ -24,15 +24,6 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
perception
);
static
const
char
*
debugstr_hstring
(
HSTRING
hstr
)
{
const
WCHAR
*
str
;
UINT32
len
;
if
(
hstr
&&
!
((
ULONG_PTR
)
hstr
>>
16
))
return
"(invalid)"
;
str
=
WindowsGetStringRawBuffer
(
hstr
,
&
len
);
return
wine_dbgstr_wn
(
str
,
len
);
}
HRESULT
WINAPI
DllGetClassObject
(
REFCLSID
clsid
,
REFIID
riid
,
void
**
out
)
{
FIXME
(
"clsid %s, riid %s, out %p stub!
\n
"
,
debugstr_guid
(
clsid
),
debugstr_guid
(
riid
),
out
);
...
...
dlls/windows.system.profile.systemmanufacturers/main.c
View file @
f4a8ad89
...
...
@@ -24,15 +24,6 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
smbios
);
static
const
char
*
debugstr_hstring
(
HSTRING
hstr
)
{
const
WCHAR
*
str
;
UINT32
len
;
if
(
hstr
&&
!
((
ULONG_PTR
)
hstr
>>
16
))
return
"(invalid)"
;
str
=
WindowsGetStringRawBuffer
(
hstr
,
&
len
);
return
wine_dbgstr_wn
(
str
,
len
);
}
struct
smbios_statics
{
IActivationFactory
IActivationFactory_iface
;
...
...
dlls/windows.ui/main.c
View file @
f4a8ad89
...
...
@@ -24,15 +24,6 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
ui
);
static
const
char
*
debugstr_hstring
(
HSTRING
hstr
)
{
const
WCHAR
*
str
;
UINT32
len
;
if
(
hstr
&&
!
((
ULONG_PTR
)
hstr
>>
16
))
return
"(invalid)"
;
str
=
WindowsGetStringRawBuffer
(
hstr
,
&
len
);
return
wine_dbgstr_wn
(
str
,
len
);
}
HRESULT
WINAPI
DllGetClassObject
(
REFCLSID
clsid
,
REFIID
riid
,
void
**
out
)
{
FIXME
(
"clsid %s, riid %s, out %p stub!
\n
"
,
debugstr_guid
(
clsid
),
debugstr_guid
(
riid
),
out
);
...
...
dlls/wintypes/main.c
View file @
f4a8ad89
...
...
@@ -34,16 +34,6 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
wintypes
);
static
const
char
*
debugstr_hstring
(
HSTRING
hstr
)
{
const
WCHAR
*
str
;
UINT32
len
;
if
(
hstr
&&
!
((
ULONG_PTR
)
hstr
>>
16
))
return
"(invalid)"
;
str
=
WindowsGetStringRawBuffer
(
hstr
,
&
len
);
return
wine_dbgstr_wn
(
str
,
len
);
}
struct
wintypes
{
IActivationFactory
IActivationFactory_iface
;
...
...
include/wine/debug.h
View file @
f4a8ad89
...
...
@@ -305,6 +305,15 @@ static inline const char *wine_dbgstr_w( const WCHAR *s )
return
wine_dbgstr_wn
(
s
,
-
1
);
}
#if defined(__hstring_h__) && defined(__WINSTRING_H_)
static
inline
const
char
*
wine_dbgstr_hstring
(
HSTRING
hstr
)
{
UINT32
len
;
const
WCHAR
*
str
=
WindowsGetStringRawBuffer
(
hstr
,
&
len
);
return
wine_dbgstr_wn
(
str
,
len
);
}
#endif
static
inline
const
char
*
wine_dbgstr_guid
(
const
GUID
*
id
)
{
if
(
!
id
)
return
"(null)"
;
...
...
@@ -498,6 +507,10 @@ static inline const char *debugstr_guid( const struct _GUID *id ) { return wine_
static
inline
const
char
*
debugstr_a
(
const
char
*
s
)
{
return
wine_dbgstr_an
(
s
,
-
1
);
}
static
inline
const
char
*
debugstr_w
(
const
WCHAR
*
s
)
{
return
wine_dbgstr_wn
(
s
,
-
1
);
}
#if defined(__hstring_h__) && defined(__WINSTRING_H_)
static
inline
const
char
*
debugstr_hstring
(
struct
HSTRING__
*
s
)
{
return
wine_dbgstr_hstring
(
s
);
}
#endif
#if defined(__oaidl_h__) && defined(V_VT)
static
inline
const
char
*
debugstr_vt
(
VARTYPE
vt
)
{
return
wine_dbgstr_vt
(
vt
);
}
static
inline
const
char
*
debugstr_variant
(
const
VARIANT
*
v
)
{
return
wine_dbgstr_variant
(
v
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment