Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
5fce0724
Commit
5fce0724
authored
Oct 01, 2013
by
Piotr Caban
Committed by
Alexandre Julliard
Oct 01, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Don't forward bsearch to ntdll.
parent
3868bf06
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletion
+15
-1
misc.c
dlls/msvcrt/misc.c
+14
-0
msvcrt.spec
dlls/msvcrt/msvcrt.spec
+1
-1
No files found.
dlls/msvcrt/misc.c
View file @
5fce0724
...
...
@@ -151,6 +151,20 @@ void* CDECL MSVCRT_bsearch_s(const void *key, const void *base,
return
NULL
;
}
static
int
CDECL
compare_wrapper
(
void
*
ctx
,
const
void
*
e1
,
const
void
*
e2
)
{
int
(
__cdecl
*
compare
)(
const
void
*
,
const
void
*
)
=
ctx
;
return
compare
(
e1
,
e2
);
}
/*********************************************************************
* bsearch (msvcrt.@)
*/
void
*
CDECL
MSVCRT_bsearch
(
const
void
*
key
,
const
void
*
base
,
MSVCRT_size_t
nmemb
,
MSVCRT_size_t
size
,
int
(
__cdecl
*
compar
)(
const
void
*
,
const
void
*
))
{
return
MSVCRT_bsearch_s
(
key
,
base
,
nmemb
,
size
,
compare_wrapper
,
compar
);
}
/*********************************************************************
* _chkesp (MSVCRT.@)
*
...
...
dlls/msvcrt/msvcrt.spec
View file @
5fce0724
...
...
@@ -1257,7 +1257,7 @@
@ cdecl atof(str) MSVCRT_atof
@ cdecl atoi(str) MSVCRT_atoi
@ cdecl atol(str) ntdll.atol
@ cdecl bsearch(ptr ptr long long ptr)
ntdll.
bsearch
@ cdecl bsearch(ptr ptr long long ptr)
MSVCRT_
bsearch
@ cdecl bsearch_s(ptr ptr long long ptr ptr) MSVCRT_bsearch_s
@ cdecl btowc(long) MSVCRT_btowc
@ cdecl calloc(long long) MSVCRT_calloc
...
...
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