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
8351bef5
Commit
8351bef5
authored
Jun 13, 2015
by
YongHao Hu
Committed by
Alexandre Julliard
Jun 15, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcp110: Add tr2_sys__Remove_dir implementation and test.
parent
9939b5f5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
44 additions
and
6 deletions
+44
-6
msvcp110.spec
dlls/msvcp110/msvcp110.spec
+2
-2
msvcp120.spec
dlls/msvcp120/msvcp120.spec
+2
-2
msvcp120.c
dlls/msvcp120/tests/msvcp120.c
+30
-0
msvcp120_app.spec
dlls/msvcp120_app/msvcp120_app.spec
+2
-2
ios.c
dlls/msvcp90/ios.c
+8
-0
No files found.
dlls/msvcp110/msvcp110.spec
View file @
8351bef5
...
...
@@ -1718,8 +1718,8 @@
@ stub -arch=arm ?_Release@_Pad@std@@QAAXXZ
@ stub -arch=i386 ?_Release@_Pad@std@@QAEXXZ
@ stub -arch=win64 ?_Release@_Pad@std@@QEAAXXZ
@
stub -arch=win32 ?_Remove_dir@sys@tr2@std@@YA_NPBD@Z
@
stub -arch=win64 ?_Remove_dir@sys@tr2@std@@YA_NPEBD@Z
@
cdecl -arch=win32 ?_Remove_dir@sys@tr2@std@@YA_NPBD@Z(str) tr2_sys__Remove_dir
@
cdecl -arch=win64 ?_Remove_dir@sys@tr2@std@@YA_NPEBD@Z(str) tr2_sys__Remove_dir
@ stub -arch=win32 ?_Remove_dir@sys@tr2@std@@YA_NPB_W@Z
@ stub -arch=win64 ?_Remove_dir@sys@tr2@std@@YA_NPEB_W@Z
@ stub -arch=win32 ?_Rename@sys@tr2@std@@YAHPBD0@Z
...
...
dlls/msvcp120/msvcp120.spec
View file @
8351bef5
...
...
@@ -1679,8 +1679,8 @@
@ stub -arch=arm ?_Release@_Pad@std@@QAAXXZ
@ stub -arch=i386 ?_Release@_Pad@std@@QAEXXZ
@ stub -arch=win64 ?_Release@_Pad@std@@QEAAXXZ
@
stub -arch=win32 ?_Remove_dir@sys@tr2@std@@YA_NPBD@Z
@
stub -arch=win64 ?_Remove_dir@sys@tr2@std@@YA_NPEBD@Z
@
cdecl -arch=win32 ?_Remove_dir@sys@tr2@std@@YA_NPBD@Z(str) tr2_sys__Remove_dir
@
cdecl -arch=win64 ?_Remove_dir@sys@tr2@std@@YA_NPEBD@Z(str) tr2_sys__Remove_dir
@ stub -arch=win32 ?_Remove_dir@sys@tr2@std@@YA_NPB_W@Z
@ stub -arch=win64 ?_Remove_dir@sys@tr2@std@@YA_NPEB_W@Z
@ stub -arch=win32 ?_Rename@sys@tr2@std@@YAHPBD0@Z
...
...
dlls/msvcp120/tests/msvcp120.c
View file @
8351bef5
...
...
@@ -65,6 +65,7 @@ static int (__cdecl *p_tr2_sys__Equivalent)(char const*, char const*);
static
char
*
(
__cdecl
*
p_tr2_sys__Current_get
)(
char
*
);
static
MSVCP_bool
(
__cdecl
*
p_tr2_sys__Current_set
)(
char
const
*
);
static
int
(
__cdecl
*
p_tr2_sys__Make_dir
)(
char
const
*
);
static
MSVCP_bool
(
__cdecl
*
p_tr2_sys__Remove_dir
)(
char
const
*
);
static
HMODULE
msvcp
;
#define SETNOFAIL(x,y) x = (void*)GetProcAddress(msvcp,y)
...
...
@@ -103,6 +104,8 @@ static BOOL init(void)
"?_Current_set@sys@tr2@std@@YA_NPEBD@Z"
);
SET
(
p_tr2_sys__Make_dir
,
"?_Make_dir@sys@tr2@std@@YAHPEBD@Z"
);
SET
(
p_tr2_sys__Remove_dir
,
"?_Remove_dir@sys@tr2@std@@YA_NPEBD@Z"
);
}
else
{
SET
(
p_tr2_sys__File_size
,
"?_File_size@sys@tr2@std@@YA_KPBD@Z"
);
...
...
@@ -114,6 +117,8 @@ static BOOL init(void)
"?_Current_set@sys@tr2@std@@YA_NPBD@Z"
);
SET
(
p_tr2_sys__Make_dir
,
"?_Make_dir@sys@tr2@std@@YAHPBD@Z"
);
SET
(
p_tr2_sys__Remove_dir
,
"?_Remove_dir@sys@tr2@std@@YA_NPBD@Z"
);
}
msvcr
=
GetModuleHandleA
(
"msvcr120.dll"
);
...
...
@@ -497,6 +502,30 @@ static void test_tr2_sys__Make_dir(void)
ok
(
RemoveDirectoryA
(
"tr2_test_dir"
),
"Expected tr2_test_dir to exist
\n
"
);
}
static
void
test_tr2_sys__Remove_dir
(
void
)
{
MSVCP_bool
ret
;
int
i
;
struct
{
char
const
*
path
;
MSVCP_bool
val
;
}
tests
[]
=
{
{
"tr2_test_dir"
,
TRUE
},
{
"tr2_test_dir"
,
FALSE
},
{
NULL
,
FALSE
},
{
"??invalid_name>>"
,
FALSE
}
};
ok
(
p_tr2_sys__Make_dir
(
"tr2_test_dir"
),
"tr2_sys__Make_dir() failed
\n
"
);
for
(
i
=
0
;
i
<
sizeof
(
tests
)
/
sizeof
(
tests
[
0
]);
i
++
)
{
errno
=
0xdeadbeef
;
ret
=
p_tr2_sys__Remove_dir
(
tests
[
i
].
path
);
ok
(
ret
==
tests
[
i
].
val
,
"test_tr2_sys__Remove_dir(): test %d expect: %d, got %d
\n
"
,
i
+
1
,
tests
[
i
].
val
,
ret
);
ok
(
errno
==
0xdeadbeef
,
"test_tr2_sys__Remove_dir(): test %d errno expect 0xdeadbeef, got %d
\n
"
,
i
+
1
,
errno
);
}
}
START_TEST
(
msvcp120
)
{
if
(
!
init
())
return
;
...
...
@@ -511,5 +540,6 @@ START_TEST(msvcp120)
test_tr2_sys__Current_get
();
test_tr2_sys__Current_set
();
test_tr2_sys__Make_dir
();
test_tr2_sys__Remove_dir
();
FreeLibrary
(
msvcp
);
}
dlls/msvcp120_app/msvcp120_app.spec
View file @
8351bef5
...
...
@@ -1679,8 +1679,8 @@
@ stub -arch=arm ?_Release@_Pad@std@@QAAXXZ
@ stub -arch=i386 ?_Release@_Pad@std@@QAEXXZ
@ stub -arch=win64 ?_Release@_Pad@std@@QEAAXXZ
@
stub -arch=win32
?_Remove_dir@sys@tr2@std@@YA_NPBD@Z
@
stub -arch=win64
?_Remove_dir@sys@tr2@std@@YA_NPEBD@Z
@
cdecl -arch=win32 ?_Remove_dir@sys@tr2@std@@YA_NPBD@Z(str) msvcp120.
?_Remove_dir@sys@tr2@std@@YA_NPBD@Z
@
cdecl -arch=win64 ?_Remove_dir@sys@tr2@std@@YA_NPEBD@Z(str) msvcp120.
?_Remove_dir@sys@tr2@std@@YA_NPEBD@Z
@ stub -arch=win32 ?_Remove_dir@sys@tr2@std@@YA_NPB_W@Z
@ stub -arch=win64 ?_Remove_dir@sys@tr2@std@@YA_NPEB_W@Z
@ stub -arch=win32 ?_Rename@sys@tr2@std@@YAHPBD0@Z
...
...
dlls/msvcp90/ios.c
View file @
8351bef5
...
...
@@ -14276,6 +14276,14 @@ int __cdecl tr2_sys__Make_dir(char const* path)
return
1
;
}
/* ?_Remove_dir@sys@tr2@std@@YA_NPBD@Z */
/* ?_Remove_dir@sys@tr2@std@@YA_NPEBD@Z */
MSVCP_bool
__cdecl
tr2_sys__Remove_dir
(
char
const
*
path
)
{
TRACE
(
"(%p)
\n
"
,
path
);
return
RemoveDirectoryA
(
path
)
!=
0
;
}
/* ??0strstream@std@@QAE@PADHH@Z */
/* ??0strstream@std@@QEAA@PEAD_JH@Z */
#if STREAMSIZE_BITS == 64
...
...
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