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
3473dd52
Commit
3473dd52
authored
Apr 30, 2024
by
Piotr Caban
Committed by
Alexandre Julliard
May 01, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcr80/tests: Fix errno access in tests.
parent
deb273a9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
msvcr80.c
dlls/msvcr80/tests/msvcr80.c
+6
-0
No files found.
dlls/msvcr80/tests/msvcr80.c
View file @
3473dd52
...
@@ -64,6 +64,11 @@ static int (__cdecl *p_strcmp)(const char *, const char *);
...
@@ -64,6 +64,11 @@ static int (__cdecl *p_strcmp)(const char *, const char *);
static
int
(
__cdecl
*
p_strncmp
)(
const
char
*
,
const
char
*
,
size_t
);
static
int
(
__cdecl
*
p_strncmp
)(
const
char
*
,
const
char
*
,
size_t
);
static
int
(
__cdecl
*
p_dupenv_s
)(
char
**
,
size_t
*
,
const
char
*
);
static
int
(
__cdecl
*
p_dupenv_s
)(
char
**
,
size_t
*
,
const
char
*
);
static
int
(
__cdecl
*
p_wdupenv_s
)(
wchar_t
**
,
size_t
*
,
const
wchar_t
*
);
static
int
(
__cdecl
*
p_wdupenv_s
)(
wchar_t
**
,
size_t
*
,
const
wchar_t
*
);
static
int
*
(
__cdecl
*
p_errno
)(
void
);
/* make sure we use the correct errno */
#undef errno
#define errno (*p_errno())
#define SETNOFAIL(x,y) x = (void*)GetProcAddress(hcrt,y)
#define SETNOFAIL(x,y) x = (void*)GetProcAddress(hcrt,y)
#define SET(x,y) do { SETNOFAIL(x,y); ok(x != NULL, "Export '%s' not found\n", y); } while(0)
#define SET(x,y) do { SETNOFAIL(x,y); ok(x != NULL, "Export '%s' not found\n", y); } while(0)
...
@@ -87,6 +92,7 @@ static BOOL init(void)
...
@@ -87,6 +92,7 @@ static BOOL init(void)
SET
(
p_strncmp
,
"strncmp"
);
SET
(
p_strncmp
,
"strncmp"
);
SET
(
p_dupenv_s
,
"_dupenv_s"
);
SET
(
p_dupenv_s
,
"_dupenv_s"
);
SET
(
p_wdupenv_s
,
"_wdupenv_s"
);
SET
(
p_wdupenv_s
,
"_wdupenv_s"
);
SET
(
p_errno
,
"_errno"
);
return
TRUE
;
return
TRUE
;
}
}
...
...
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