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
6113a251
Commit
6113a251
authored
Jan 29, 2020
by
Piotr Caban
Committed by
Alexandre Julliard
Jan 29, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Reimplement _set_new_mode function.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
7e9cba13
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
heap.c
dlls/msvcrt/heap.c
+2
-6
No files found.
dlls/msvcrt/heap.c
View file @
6113a251
...
...
@@ -226,12 +226,8 @@ MSVCRT_new_handler_func CDECL MSVCRT_set_new_handler(void *func)
*/
int
CDECL
MSVCRT__set_new_mode
(
int
mode
)
{
int
old_mode
;
LOCK_HEAP
;
old_mode
=
MSVCRT_new_mode
;
MSVCRT_new_mode
=
mode
;
UNLOCK_HEAP
;
return
old_mode
;
if
(
!
MSVCRT_CHECK_PMT
(
mode
==
0
||
mode
==
1
))
return
-
1
;
return
InterlockedExchange
(
&
MSVCRT_new_mode
,
mode
);
}
/*********************************************************************
...
...
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