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
ca2a6673
Commit
ca2a6673
authored
Jul 23, 2007
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jul 24, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wldap32: Don't produce unreachable code during conditional compilation. Found bySmatch.
parent
11bb71d3
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
17 deletions
+30
-17
init.c
dlls/wldap32/init.c
+16
-8
misc.c
dlls/wldap32/misc.c
+8
-4
page.c
dlls/wldap32/page.c
+2
-3
value.c
dlls/wldap32/value.c
+4
-2
No files found.
dlls/wldap32/init.c
View file @
ca2a6673
...
...
@@ -236,8 +236,9 @@ exit:
strfreeW
(
hostnameW
);
return
ld
;
#e
ndif
#e
lse
return
NULL
;
#endif
}
/***********************************************************************
...
...
@@ -288,8 +289,9 @@ exit:
strfreeU
(
url
);
return
ld
;
#e
ndif
#e
lse
return
NULL
;
#endif
}
/***********************************************************************
...
...
@@ -342,8 +344,9 @@ exit:
strfreeW
(
hostnameW
);
return
ld
;
#e
ndif
#e
lse
return
NULL
;
#endif
}
/***********************************************************************
...
...
@@ -395,8 +398,9 @@ exit:
strfreeU
(
url
);
return
ld
;
#e
ndif
#e
lse
return
NULL
;
#endif
}
/***********************************************************************
...
...
@@ -423,8 +427,9 @@ exit:
strfreeW
(
hostnameW
);
return
ld
;
#e
ndif
#e
lse
return
NULL
;
#endif
}
/***********************************************************************
...
...
@@ -475,8 +480,9 @@ exit:
strfreeU
(
url
);
return
ld
;
#e
ndif
#e
lse
return
NULL
;
#endif
}
/***********************************************************************
...
...
@@ -502,8 +508,9 @@ WLDAP32_LDAP * CDECL ldap_sslinitA( PCHAR hostname, ULONG portnumber, int secure
strfreeW
(
hostnameW
);
return
ld
;
#e
ndif
#e
lse
return
NULL
;
#endif
}
/***********************************************************************
...
...
@@ -559,8 +566,9 @@ exit:
strfreeU
(
url
);
return
ld
;
#e
ndif
#e
lse
return
NULL
;
#endif
}
/***********************************************************************
...
...
dlls/wldap32/misc.c
View file @
ca2a6673
...
...
@@ -375,8 +375,9 @@ WLDAP32_LDAPMessage * CDECL WLDAP32_ldap_first_entry( WLDAP32_LDAP *ld, WLDAP32_
if
(
!
ld
||
!
res
)
return
NULL
;
return
ldap_first_entry
(
ld
,
res
);
#e
ndif
#e
lse
return
NULL
;
#endif
}
/***********************************************************************
...
...
@@ -401,8 +402,9 @@ WLDAP32_LDAPMessage * CDECL WLDAP32_ldap_first_reference( WLDAP32_LDAP *ld, WLDA
if
(
!
ld
)
return
NULL
;
return
ldap_first_reference
(
ld
,
res
);
#e
ndif
#e
lse
return
NULL
;
#endif
}
/***********************************************************************
...
...
@@ -536,8 +538,9 @@ WLDAP32_LDAPMessage * CDECL WLDAP32_ldap_next_entry( WLDAP32_LDAP *ld, WLDAP32_L
if
(
!
ld
||
!
entry
)
return
NULL
;
return
ldap_next_entry
(
ld
,
entry
);
#e
ndif
#e
lse
return
NULL
;
#endif
}
/***********************************************************************
...
...
@@ -565,8 +568,9 @@ WLDAP32_LDAPMessage * CDECL WLDAP32_ldap_next_reference( WLDAP32_LDAP *ld, WLDAP
if
(
!
ld
||
!
entry
)
return
NULL
;
return
ldap_next_reference
(
ld
,
entry
);
#e
ndif
#e
lse
return
NULL
;
#endif
}
/***********************************************************************
...
...
dlls/wldap32/page.c
View file @
ca2a6673
...
...
@@ -152,9 +152,7 @@ static ULONG create_page_control( ULONG pagesize, struct WLDAP32_berval *cookie,
ULONG
CDECL
ldap_create_page_controlW
(
WLDAP32_LDAP
*
ld
,
ULONG
pagesize
,
struct
WLDAP32_berval
*
cookie
,
UCHAR
critical
,
PLDAPControlW
*
control
)
{
ULONG
ret
=
LDAP_NOT_SUPPORTED
;
#ifdef HAVE_LDAP
TRACE
(
"(%p, 0x%08x, %p, 0x%02x, %p)
\n
"
,
ld
,
pagesize
,
cookie
,
critical
,
control
);
...
...
@@ -163,8 +161,9 @@ ULONG CDECL ldap_create_page_controlW( WLDAP32_LDAP *ld, ULONG pagesize,
return
create_page_control
(
pagesize
,
cookie
,
critical
,
control
);
#else
return
LDAP_NOT_SUPPORTED
;
#endif
return
ret
;
}
ULONG
CDECL
ldap_get_next_page
(
WLDAP32_LDAP
*
ld
,
PLDAPSearch
search
,
ULONG
pagesize
,
...
...
dlls/wldap32/value.c
View file @
ca2a6673
...
...
@@ -272,8 +272,9 @@ struct WLDAP32_berval ** CDECL ldap_get_values_lenA( WLDAP32_LDAP *ld,
strfreeW
(
attrW
);
return
ret
;
#e
ndif
#e
lse
return
NULL
;
#endif
}
/***********************************************************************
...
...
@@ -314,8 +315,9 @@ struct WLDAP32_berval ** CDECL ldap_get_values_lenW( WLDAP32_LDAP *ld,
strfreeU
(
attrU
);
return
(
struct
WLDAP32_berval
**
)
ret
;
#e
ndif
#e
lse
return
NULL
;
#endif
}
/***********************************************************************
...
...
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