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
14b75f98
Commit
14b75f98
authored
Jul 20, 2002
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added definition of msvcrt internal error codes.
parent
b6941bbb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
2 deletions
+36
-2
msvcrt.h
dlls/msvcrt/msvcrt.h
+34
-0
thread.c
dlls/msvcrt/thread.c
+2
-2
No files found.
dlls/msvcrt/msvcrt.h
View file @
14b75f98
...
...
@@ -70,4 +70,38 @@ extern void msvcrt_init_args(void);
extern
void
msvcrt_free_args
(
void
);
extern
void
msvcrt_init_vtables
(
void
);
/* run-time error codes */
#define _RT_STACK 0
#define _RT_NULLPTR 1
#define _RT_FLOAT 2
#define _RT_INTDIV 3
#define _RT_EXECMEM 5
#define _RT_EXECFORM 6
#define _RT_EXECENV 7
#define _RT_SPACEARG 8
#define _RT_SPACEENV 9
#define _RT_ABORT 10
#define _RT_NPTR 12
#define _RT_FPTR 13
#define _RT_BREAK 14
#define _RT_INT 15
#define _RT_THREAD 16
#define _RT_LOCK 17
#define _RT_HEAP 18
#define _RT_OPENCON 19
#define _RT_QWIN 20
#define _RT_NOMAIN 21
#define _RT_NONCONT 22
#define _RT_INVALDISP 23
#define _RT_ONEXIT 24
#define _RT_PUREVIRT 25
#define _RT_STDIOINIT 26
#define _RT_LOWIOINIT 27
#define _RT_HEAPINIT 28
#define _RT_DOMAIN 120
#define _RT_SING 121
#define _RT_TLOSS 122
#define _RT_CRNL 252
#define _RT_BANNER 255
#endif
/* __WINE_MSVCRT_H */
dlls/msvcrt/thread.c
View file @
14b75f98
...
...
@@ -46,8 +46,8 @@ MSVCRT_thread_data *msvcrt_get_thread_data(void)
if
(
!
(
ptr
=
TlsGetValue
(
MSVCRT_tls_index
)))
{
if
(
!
(
ptr
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
*
ptr
)
)))
MSVCRT__amsg_exit
(
16
);
if
(
!
TlsSetValue
(
MSVCRT_tls_index
,
ptr
))
MSVCRT__amsg_exit
(
16
);
MSVCRT__amsg_exit
(
_RT_THREAD
);
if
(
!
TlsSetValue
(
MSVCRT_tls_index
,
ptr
))
MSVCRT__amsg_exit
(
_RT_THREAD
);
}
SetLastError
(
err
);
return
ptr
;
...
...
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