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
adb7d573
Commit
adb7d573
authored
Feb 07, 2022
by
Eric Pouech
Committed by
Alexandre Julliard
Feb 08, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adsldp: Enable compilation with long types.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
9da38cc0
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
40 additions
and
41 deletions
+40
-41
Makefile.in
dlls/adsldp/Makefile.in
+0
-1
adsldp.c
dlls/adsldp/adsldp.c
+36
-36
schema.c
dlls/adsldp/schema.c
+4
-4
No files found.
dlls/adsldp/Makefile.in
View file @
adb7d573
EXTRADEFS
=
-DWINE_NO_LONG_TYPES
MODULE
=
adsldp.dll
IMPORTS
=
ole32 oleaut32 secur32 activeds uuid
DELAYIMPORTS
=
netapi32 wldap32
...
...
dlls/adsldp/adsldp.c
View file @
adb7d573
...
...
@@ -218,21 +218,21 @@ static HRESULT WINAPI sysinfo_GetTypeInfoCount(IADsADSystemInfo *iface, UINT *co
static
HRESULT
WINAPI
sysinfo_GetTypeInfo
(
IADsADSystemInfo
*
iface
,
UINT
index
,
LCID
lcid
,
ITypeInfo
**
info
)
{
FIXME
(
"%p,%u,%#x,%p: stub
\n
"
,
iface
,
index
,
lcid
,
info
);
FIXME
(
"%p,%u,%#
l
x,%p: stub
\n
"
,
iface
,
index
,
lcid
,
info
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
sysinfo_GetIDsOfNames
(
IADsADSystemInfo
*
iface
,
REFIID
riid
,
LPOLESTR
*
names
,
UINT
count
,
LCID
lcid
,
DISPID
*
dispid
)
{
FIXME
(
"%p,%s,%p,%u,%u,%p: stub
\n
"
,
iface
,
debugstr_guid
(
riid
),
names
,
count
,
lcid
,
dispid
);
FIXME
(
"%p,%s,%p,%u,%
l
u,%p: stub
\n
"
,
iface
,
debugstr_guid
(
riid
),
names
,
count
,
lcid
,
dispid
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
sysinfo_Invoke
(
IADsADSystemInfo
*
iface
,
DISPID
dispid
,
REFIID
riid
,
LCID
lcid
,
WORD
flags
,
DISPPARAMS
*
params
,
VARIANT
*
result
,
EXCEPINFO
*
excepinfo
,
UINT
*
argerr
)
{
FIXME
(
"%p,%
d,%s,%04
x,%04x,%p,%p,%p,%p: stub
\n
"
,
iface
,
dispid
,
debugstr_guid
(
riid
),
lcid
,
flags
,
FIXME
(
"%p,%
ld,%s,%04l
x,%04x,%p,%p,%p,%p: stub
\n
"
,
iface
,
dispid
,
debugstr_guid
(
riid
),
lcid
,
flags
,
params
,
result
,
excepinfo
,
argerr
);
return
E_NOTIMPL
;
}
...
...
@@ -515,21 +515,21 @@ static HRESULT WINAPI ldapns_GetTypeInfoCount(IADs *iface, UINT *count)
static
HRESULT
WINAPI
ldapns_GetTypeInfo
(
IADs
*
iface
,
UINT
index
,
LCID
lcid
,
ITypeInfo
**
info
)
{
FIXME
(
"%p,%u,%#x,%p: stub
\n
"
,
iface
,
index
,
lcid
,
info
);
FIXME
(
"%p,%u,%#
l
x,%p: stub
\n
"
,
iface
,
index
,
lcid
,
info
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ldapns_GetIDsOfNames
(
IADs
*
iface
,
REFIID
riid
,
LPOLESTR
*
names
,
UINT
count
,
LCID
lcid
,
DISPID
*
dispid
)
{
FIXME
(
"%p,%s,%p,%u,%u,%p: stub
\n
"
,
iface
,
debugstr_guid
(
riid
),
names
,
count
,
lcid
,
dispid
);
FIXME
(
"%p,%s,%p,%u,%
l
u,%p: stub
\n
"
,
iface
,
debugstr_guid
(
riid
),
names
,
count
,
lcid
,
dispid
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ldapns_Invoke
(
IADs
*
iface
,
DISPID
dispid
,
REFIID
riid
,
LCID
lcid
,
WORD
flags
,
DISPPARAMS
*
params
,
VARIANT
*
result
,
EXCEPINFO
*
excepinfo
,
UINT
*
argerr
)
{
FIXME
(
"%p,%
d,%s,%04
x,%04x,%p,%p,%p,%p: stub
\n
"
,
iface
,
dispid
,
debugstr_guid
(
riid
),
lcid
,
flags
,
FIXME
(
"%p,%
ld,%s,%04l
x,%04x,%p,%p,%p,%p: stub
\n
"
,
iface
,
dispid
,
debugstr_guid
(
riid
),
lcid
,
flags
,
params
,
result
,
excepinfo
,
argerr
);
return
E_NOTIMPL
;
}
...
...
@@ -626,7 +626,7 @@ static HRESULT WINAPI ldapns_Get(IADs *iface, BSTR name, VARIANT *prop)
VARIANT
item
;
LONG
idx
;
TRACE
(
"attr %s has %u values
\n
"
,
debugstr_w
(
ldap
->
attrs
[
i
].
name
),
count
);
TRACE
(
"attr %s has %
l
u values
\n
"
,
debugstr_w
(
ldap
->
attrs
[
i
].
name
),
count
);
sa
=
SafeArrayCreateVector
(
VT_VARIANT
,
0
,
count
);
if
(
!
sa
)
return
E_OUTOFMEMORY
;
...
...
@@ -682,7 +682,7 @@ static HRESULT WINAPI ldapns_GetEx(IADs *iface, BSTR name, VARIANT *prop)
static
HRESULT
WINAPI
ldapns_PutEx
(
IADs
*
iface
,
LONG
code
,
BSTR
name
,
VARIANT
prop
)
{
FIXME
(
"%p,%d,%s,%s: stub
\n
"
,
iface
,
code
,
debugstr_w
(
name
),
wine_dbgstr_variant
(
&
prop
));
FIXME
(
"%p,%
l
d,%s,%s: stub
\n
"
,
iface
,
code
,
debugstr_w
(
name
),
wine_dbgstr_variant
(
&
prop
));
return
E_NOTIMPL
;
}
...
...
@@ -723,7 +723,7 @@ static HRESULT WINAPI ldapns_GetInfoEx(IADs *iface, VARIANT prop, LONG reserved)
LDAPMessage
*
res
=
NULL
,
*
entry
;
BerElement
*
ber
;
TRACE
(
"%p,%s,%d
\n
"
,
iface
,
wine_dbgstr_variant
(
&
prop
),
reserved
);
TRACE
(
"%p,%s,%
l
d
\n
"
,
iface
,
wine_dbgstr_variant
(
&
prop
),
reserved
);
free_attributes
(
ldap
);
...
...
@@ -764,7 +764,7 @@ static HRESULT WINAPI ldapns_GetInfoEx(IADs *iface, VARIANT prop, LONG reserved)
err
=
ldap_search_sW
(
ldap
->
ld
,
NULL
,
LDAP_SCOPE_BASE
,
(
WCHAR
*
)
L"(objectClass=*)"
,
props
,
FALSE
,
&
res
);
if
(
err
!=
LDAP_SUCCESS
)
{
TRACE
(
"ldap_search_sW error %#x
\n
"
,
err
);
TRACE
(
"ldap_search_sW error %#
l
x
\n
"
,
err
);
hr
=
HRESULT_FROM_WIN32
(
map_ldap_error
(
err
));
goto
exit
;
}
...
...
@@ -870,21 +870,21 @@ static HRESULT WINAPI openobj_GetTypeInfoCount(IADsOpenDSObject *iface, UINT *co
static
HRESULT
WINAPI
openobj_GetTypeInfo
(
IADsOpenDSObject
*
iface
,
UINT
index
,
LCID
lcid
,
ITypeInfo
**
info
)
{
FIXME
(
"%p,%u,%#x,%p: stub
\n
"
,
iface
,
index
,
lcid
,
info
);
FIXME
(
"%p,%u,%#
l
x,%p: stub
\n
"
,
iface
,
index
,
lcid
,
info
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
openobj_GetIDsOfNames
(
IADsOpenDSObject
*
iface
,
REFIID
riid
,
LPOLESTR
*
names
,
UINT
count
,
LCID
lcid
,
DISPID
*
dispid
)
{
FIXME
(
"%p,%s,%p,%u,%u,%p: stub
\n
"
,
iface
,
debugstr_guid
(
riid
),
names
,
count
,
lcid
,
dispid
);
FIXME
(
"%p,%s,%p,%u,%
l
u,%p: stub
\n
"
,
iface
,
debugstr_guid
(
riid
),
names
,
count
,
lcid
,
dispid
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
openobj_Invoke
(
IADsOpenDSObject
*
iface
,
DISPID
dispid
,
REFIID
riid
,
LCID
lcid
,
WORD
flags
,
DISPPARAMS
*
params
,
VARIANT
*
result
,
EXCEPINFO
*
excepinfo
,
UINT
*
argerr
)
{
FIXME
(
"%p,%
d,%s,%04
x,%04x,%p,%p,%p,%p: stub
\n
"
,
iface
,
dispid
,
debugstr_guid
(
riid
),
lcid
,
flags
,
FIXME
(
"%p,%
ld,%s,%04l
x,%04x,%p,%p,%p,%p: stub
\n
"
,
iface
,
dispid
,
debugstr_guid
(
riid
),
lcid
,
flags
,
params
,
result
,
excepinfo
,
argerr
);
return
E_NOTIMPL
;
}
...
...
@@ -964,12 +964,12 @@ static HRESULT WINAPI openobj_OpenDSObject(IADsOpenDSObject *iface, BSTR path, B
ULONG
err
,
at_single_count
=
0
,
at_multiple_count
=
0
;
struct
attribute_type
*
at
=
NULL
;
TRACE
(
"%p,%s,%s,%p,%08x,%p
\n
"
,
iface
,
debugstr_w
(
path
),
debugstr_w
(
user
),
password
,
flags
,
obj
);
TRACE
(
"%p,%s,%s,%p,%08
l
x,%p
\n
"
,
iface
,
debugstr_w
(
path
),
debugstr_w
(
user
),
password
,
flags
,
obj
);
hr
=
parse_path
(
path
,
&
host
,
&
port
,
&
object
);
if
(
hr
!=
S_OK
)
return
hr
;
TRACE
(
"host %s, port %u, object %s
\n
"
,
debugstr_w
(
host
),
port
,
debugstr_w
(
object
));
TRACE
(
"host %s, port %
l
u, object %s
\n
"
,
debugstr_w
(
host
),
port
,
debugstr_w
(
object
));
if
(
host
)
{
...
...
@@ -1043,7 +1043,7 @@ static HRESULT WINAPI openobj_OpenDSObject(IADsOpenDSObject *iface, BSTR path, B
err
=
ldap_bind_sW
(
ld
,
NULL
,
(
WCHAR
*
)
&
id
,
LDAP_AUTH_NEGOTIATE
);
if
(
err
!=
LDAP_SUCCESS
)
{
TRACE
(
"ldap_bind_sW error %#x
\n
"
,
err
);
TRACE
(
"ldap_bind_sW error %#
l
x
\n
"
,
err
);
hr
=
HRESULT_FROM_WIN32
(
map_ldap_error
(
err
));
ldap_unbind
(
ld
);
goto
fail
;
...
...
@@ -1054,7 +1054,7 @@ static HRESULT WINAPI openobj_OpenDSObject(IADsOpenDSObject *iface, BSTR path, B
err
=
ldap_simple_bind_sW
(
ld
,
user
,
password
);
if
(
err
!=
LDAP_SUCCESS
)
{
TRACE
(
"ldap_simple_bind_sW error %#x
\n
"
,
err
);
TRACE
(
"ldap_simple_bind_sW error %#
l
x
\n
"
,
err
);
hr
=
HRESULT_FROM_WIN32
(
map_ldap_error
(
err
));
ldap_unbind
(
ld
);
goto
fail
;
...
...
@@ -1140,7 +1140,7 @@ static HRESULT WINAPI search_SetSearchPreference(IDirectorySearch *iface, PADS_S
HRESULT
hr
=
S_OK
;
DWORD
i
;
TRACE
(
"%p,%p,%u
\n
"
,
iface
,
prefs
,
count
);
TRACE
(
"%p,%p,%
l
u
\n
"
,
iface
,
prefs
,
count
);
for
(
i
=
0
;
i
<
count
;
i
++
)
{
...
...
@@ -1159,7 +1159,7 @@ static HRESULT WINAPI search_SetSearchPreference(IDirectorySearch *iface, PADS_S
case
ADS_SCOPE_BASE
:
case
ADS_SCOPE_ONELEVEL
:
case
ADS_SCOPE_SUBTREE
:
TRACE
(
"SEARCH_SCOPE: %d
\n
"
,
prefs
[
i
].
vValue
.
u
.
Integer
);
TRACE
(
"SEARCH_SCOPE: %
l
d
\n
"
,
prefs
[
i
].
vValue
.
u
.
Integer
);
ldap
->
search
.
scope
=
prefs
[
i
].
vValue
.
u
.
Integer
;
prefs
[
i
].
dwStatus
=
ADS_STATUS_S_OK
;
break
;
...
...
@@ -1185,7 +1185,7 @@ static HRESULT WINAPI search_SetSearchPreference(IDirectorySearch *iface, PADS_S
break
;
}
TRACE
(
"SECURITY_MASK: %08x
\n
"
,
prefs
[
i
].
vValue
.
u
.
Integer
);
TRACE
(
"SECURITY_MASK: %08
l
x
\n
"
,
prefs
[
i
].
vValue
.
u
.
Integer
);
security_mask
=
prefs
[
i
].
vValue
.
u
.
Integer
;
if
(
!
security_mask
)
security_mask
=
ADS_SECURITY_INFO_OWNER
;
...
...
@@ -1208,7 +1208,7 @@ static HRESULT WINAPI search_SetSearchPreference(IDirectorySearch *iface, PADS_S
err
=
ldap_set_optionW
(
ldap
->
ld
,
LDAP_OPT_SERVER_CONTROLS
,
ctrls
);
if
(
err
!=
LDAP_SUCCESS
)
{
TRACE
(
"ldap_set_option error %#x
\n
"
,
err
);
TRACE
(
"ldap_set_option error %#
l
x
\n
"
,
err
);
prefs
[
i
].
dwStatus
=
ADS_STATUS_INVALID_SEARCHPREF
;
hr
=
S_ADS_ERRORSOCCURRED
;
}
...
...
@@ -1228,7 +1228,7 @@ static HRESULT WINAPI search_SetSearchPreference(IDirectorySearch *iface, PADS_S
break
;
}
TRACE
(
"PAGESIZE: %d
\n
"
,
prefs
[
i
].
vValue
.
u
.
Integer
);
TRACE
(
"PAGESIZE: %
l
d
\n
"
,
prefs
[
i
].
vValue
.
u
.
Integer
);
ldap
->
search
.
pagesize
=
prefs
[
i
].
vValue
.
u
.
Integer
;
prefs
[
i
].
dwStatus
=
ADS_STATUS_S_OK
;
break
;
...
...
@@ -1241,7 +1241,7 @@ static HRESULT WINAPI search_SetSearchPreference(IDirectorySearch *iface, PADS_S
break
;
}
TRACE
(
"CACHE_RESULTS: %d
\n
"
,
prefs
[
i
].
vValue
.
u
.
Boolean
);
TRACE
(
"CACHE_RESULTS: %
l
d
\n
"
,
prefs
[
i
].
vValue
.
u
.
Boolean
);
ldap
->
search
.
cache_results
=
prefs
[
i
].
vValue
.
u
.
Boolean
;
prefs
[
i
].
dwStatus
=
ADS_STATUS_S_OK
;
break
;
...
...
@@ -1254,7 +1254,7 @@ static HRESULT WINAPI search_SetSearchPreference(IDirectorySearch *iface, PADS_S
break
;
}
TRACE
(
"ATTRIBTYPES_ONLY: %d
\n
"
,
prefs
[
i
].
vValue
.
u
.
Boolean
);
TRACE
(
"ATTRIBTYPES_ONLY: %
l
d
\n
"
,
prefs
[
i
].
vValue
.
u
.
Boolean
);
ldap
->
search
.
attribtypes_only
=
prefs
[
i
].
vValue
.
u
.
Boolean
;
prefs
[
i
].
dwStatus
=
ADS_STATUS_S_OK
;
break
;
...
...
@@ -1267,7 +1267,7 @@ static HRESULT WINAPI search_SetSearchPreference(IDirectorySearch *iface, PADS_S
break
;
}
TRACE
(
"TOMBSTONE: %d
\n
"
,
prefs
[
i
].
vValue
.
u
.
Boolean
);
TRACE
(
"TOMBSTONE: %
l
d
\n
"
,
prefs
[
i
].
vValue
.
u
.
Boolean
);
ldap
->
search
.
tombstone
=
prefs
[
i
].
vValue
.
u
.
Boolean
;
prefs
[
i
].
dwStatus
=
ADS_STATUS_S_OK
;
break
;
...
...
@@ -1291,7 +1291,7 @@ static HRESULT WINAPI search_ExecuteSearch(IDirectorySearch *iface, LPWSTR filte
LDAPControlW
**
ctrls
=
NULL
,
*
ctrls_a
[
2
],
tombstone
;
struct
ldap_search_context
*
ldap_ctx
;
TRACE
(
"%p,%s,%p,%u,%p
\n
"
,
iface
,
debugstr_w
(
filter
),
names
,
count
,
res
);
TRACE
(
"%p,%s,%p,%
l
u,%p
\n
"
,
iface
,
debugstr_w
(
filter
),
names
,
count
,
res
);
if
(
!
res
)
return
E_ADS_BAD_PARAMETER
;
...
...
@@ -1352,7 +1352,7 @@ static HRESULT WINAPI search_ExecuteSearch(IDirectorySearch *iface, LPWSTR filte
heap_free
(
props
);
if
(
err
!=
LDAP_SUCCESS
)
{
TRACE
(
"ldap_search_sW error %#x
\n
"
,
err
);
TRACE
(
"ldap_search_sW error %#
l
x
\n
"
,
err
);
if
(
ldap_ctx
->
page
)
ldap_search_abandon_page
(
ldap
->
ld
,
ldap_ctx
->
page
);
heap_free
(
ldap_ctx
);
...
...
@@ -1427,7 +1427,7 @@ static HRESULT WINAPI search_GetNextRow(IDirectorySearch *iface, ADS_SEARCH_HAND
if
(
err
!=
LDAP_NO_RESULTS_RETURNED
)
{
TRACE
(
"ldap_get_next_page_s error %#x
\n
"
,
err
);
TRACE
(
"ldap_get_next_page_s error %#
l
x
\n
"
,
err
);
return
HRESULT_FROM_WIN32
(
map_ldap_error
(
err
));
}
/* fall through */
...
...
@@ -1561,7 +1561,7 @@ static HRESULT add_column_values(LDAP_namespace *ldap, struct ldap_search_contex
FIXME
(
"not recognized boolean value %s
\n
"
,
debugstr_w
(
values
[
i
]));
col
->
pADsValues
[
i
].
u
.
Boolean
=
0
;
}
TRACE
(
"%s => %d
\n
"
,
debugstr_w
(
values
[
i
]),
col
->
pADsValues
[
i
].
u
.
Boolean
);
TRACE
(
"%s => %
l
d
\n
"
,
debugstr_w
(
values
[
i
]),
col
->
pADsValues
[
i
].
u
.
Boolean
);
}
ldap_value_freeW
(
values
);
...
...
@@ -1596,7 +1596,7 @@ static HRESULT add_column_values(LDAP_namespace *ldap, struct ldap_search_contex
else
{
col
->
pADsValues
[
i
].
u
.
Integer
=
atol
(
values
[
i
]
->
bv_val
);
TRACE
(
"%s => %d
\n
"
,
debugstr_an
(
values
[
i
]
->
bv_val
,
values
[
i
]
->
bv_len
),
col
->
pADsValues
[
i
].
u
.
Integer
);
TRACE
(
"%s => %
l
d
\n
"
,
debugstr_an
(
values
[
i
]
->
bv_val
,
values
[
i
]
->
bv_len
),
col
->
pADsValues
[
i
].
u
.
Integer
);
}
}
...
...
@@ -1738,7 +1738,7 @@ static HRESULT add_column_values(LDAP_namespace *ldap, struct ldap_search_contex
FIXME
(
"wrong DN with binary separator '%c'
\n
"
,
*
p
);
col
->
pADsValues
[
i
].
u
.
pDNWithBinary
->
pszDNString
=
p
+
1
;
TRACE
(
"%s => %u,%s,%s
\n
"
,
debugstr_w
(
values
[
i
]),
TRACE
(
"%s => %
l
u,%s,%s
\n
"
,
debugstr_w
(
values
[
i
]),
col
->
pADsValues
[
i
].
u
.
pDNWithBinary
->
dwLength
,
debugstr_an
((
char
*
)
col
->
pADsValues
[
i
].
u
.
pDNWithBinary
->
lpBinaryValue
,
col
->
pADsValues
[
i
].
u
.
pDNWithBinary
->
dwLength
),
debugstr_w
(
col
->
pADsValues
[
i
].
u
.
pDNWithBinary
->
pszDNString
));
...
...
@@ -1915,21 +1915,21 @@ static HRESULT WINAPI dirobj_GetObjectInformation(IDirectoryObject *iface, PADS_
static
HRESULT
WINAPI
dirobj_GetObjectAttributes
(
IDirectoryObject
*
iface
,
LPWSTR
*
names
,
DWORD
count
,
PADS_ATTR_INFO
*
attrs
,
DWORD
*
count_returned
)
{
FIXME
(
"%p,%p,%u,%p,%p: stub
\n
"
,
iface
,
names
,
count
,
attrs
,
count_returned
);
FIXME
(
"%p,%p,%
l
u,%p,%p: stub
\n
"
,
iface
,
names
,
count
,
attrs
,
count_returned
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
dirobj_SetObjectAttributes
(
IDirectoryObject
*
iface
,
PADS_ATTR_INFO
attrs
,
DWORD
count
,
DWORD
*
count_set
)
{
FIXME
(
"%p,%p,%u,%p: stub
\n
"
,
iface
,
attrs
,
count
,
count_set
);
FIXME
(
"%p,%p,%
l
u,%p: stub
\n
"
,
iface
,
attrs
,
count
,
count_set
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
dirobj_CreateDSObject
(
IDirectoryObject
*
iface
,
LPWSTR
name
,
PADS_ATTR_INFO
attrs
,
DWORD
count
,
IDispatch
**
obj
)
{
FIXME
(
"%p,%s,%p,%u,%p: stub
\n
"
,
iface
,
debugstr_w
(
name
),
attrs
,
count
,
obj
);
FIXME
(
"%p,%s,%p,%
l
u,%p: stub
\n
"
,
iface
,
debugstr_w
(
name
),
attrs
,
count
,
obj
);
return
E_NOTIMPL
;
}
...
...
@@ -2032,7 +2032,7 @@ static ULONG WINAPI factory_AddRef(IClassFactory *iface)
class_factory
*
factory
=
impl_from_IClassFactory
(
iface
);
ULONG
ref
=
InterlockedIncrement
(
&
factory
->
ref
);
TRACE
(
"(%p) ref %u
\n
"
,
iface
,
ref
);
TRACE
(
"(%p) ref %
l
u
\n
"
,
iface
,
ref
);
return
ref
;
}
...
...
@@ -2042,7 +2042,7 @@ static ULONG WINAPI factory_Release(IClassFactory *iface)
class_factory
*
factory
=
impl_from_IClassFactory
(
iface
);
ULONG
ref
=
InterlockedDecrement
(
&
factory
->
ref
);
TRACE
(
"(%p) ref %u
\n
"
,
iface
,
ref
);
TRACE
(
"(%p) ref %
l
u
\n
"
,
iface
,
ref
);
if
(
!
ref
)
heap_free
(
factory
);
...
...
dlls/adsldp/schema.c
View file @
adb7d573
...
...
@@ -198,7 +198,7 @@ static WCHAR *parse_name(WCHAR **str, ULONG *name_count)
tmp_name
=
parse_name
(
&
p
,
&
dummy
);
if
(
!
tmp_name
)
break
;
TRACE
(
"NAME[%u] %s
\n
"
,
*
name_count
,
debugstr_w
(
tmp_name
));
TRACE
(
"NAME[%
l
u] %s
\n
"
,
*
name_count
,
debugstr_w
(
tmp_name
));
count
=
wcslen
(
tmp_name
);
...
...
@@ -368,7 +368,7 @@ struct attribute_type *load_schema(LDAP *ld, ULONG *at_single_count, ULONG *at_m
err
=
ldap_search_sW
(
ld
,
NULL
,
LDAP_SCOPE_BASE
,
(
WCHAR
*
)
L"(objectClass=*)"
,
subschema
,
FALSE
,
&
res
);
if
(
err
!=
LDAP_SUCCESS
)
{
TRACE
(
"ldap_search_sW error %#x
\n
"
,
err
);
TRACE
(
"ldap_search_sW error %#
l
x
\n
"
,
err
);
return
NULL
;
}
...
...
@@ -382,7 +382,7 @@ struct attribute_type *load_schema(LDAP *ld, ULONG *at_single_count, ULONG *at_m
err
=
ldap_search_sW
(
ld
,
schema
[
0
],
LDAP_SCOPE_BASE
,
(
WCHAR
*
)
L"(objectClass=*)"
,
attribute_types
,
FALSE
,
&
res
);
if
(
err
!=
LDAP_SUCCESS
)
{
TRACE
(
"ldap_search_sW error %#x
\n
"
,
err
);
TRACE
(
"ldap_search_sW error %#
l
x
\n
"
,
err
);
ldap_value_freeW
(
schema
);
return
NULL
;
}
...
...
@@ -419,7 +419,7 @@ struct attribute_type *load_schema(LDAP *ld, ULONG *at_single_count, ULONG *at_m
continue
;
}
TRACE
(
"oid %s, name %s, name_count %u, syntax %s, single-value %d
\n
"
,
debugstr_w
(
at
[
count
].
oid
),
TRACE
(
"oid %s, name %s, name_count %
l
u, syntax %s, single-value %d
\n
"
,
debugstr_w
(
at
[
count
].
oid
),
debugstr_w
(
at
[
count
].
name
),
at
[
count
].
name_count
,
debugstr_w
(
at
[
count
].
syntax
),
at
[
count
].
single_value
);
if
(
at
[
count
].
name_count
>
1
)
...
...
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