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
771d3514
Commit
771d3514
authored
Jul 05, 2017
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Jul 05, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32/tests: Use standard wine_dbgstr_longlong.
Signed-off-by:
Alistair Leslie-Hughes
<
leslie_alistair@hotmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
39378fad
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
14 deletions
+2
-14
recyclebin.c
dlls/shell32/tests/recyclebin.c
+2
-14
No files found.
dlls/shell32/tests/recyclebin.c
View file @
771d3514
...
...
@@ -28,18 +28,6 @@
static
int
(
WINAPI
*
pSHQueryRecycleBinA
)(
LPCSTR
,
LPSHQUERYRBINFO
);
static
int
(
WINAPI
*
pSHFileOperationA
)(
LPSHFILEOPSTRUCTA
);
static
char
int64_buffer
[
65
];
/* Note: This function uses a single buffer for the return value.*/
static
const
char
*
str_from_int64
(
__int64
ll
)
{
if
(
sizeof
(
ll
)
>
sizeof
(
unsigned
long
)
&&
ll
>>
32
)
sprintf
(
int64_buffer
,
"%lx%08lx"
,(
unsigned
long
)(
ll
>>
32
),(
unsigned
long
)
ll
);
else
sprintf
(
int64_buffer
,
"%lx"
,(
unsigned
long
)
ll
);
return
int64_buffer
;
}
static
void
setup_pointers
(
void
)
{
HMODULE
hshell32
=
GetModuleHandleA
(
"shell32.dll"
);
...
...
@@ -88,8 +76,8 @@ static void test_query_recyclebin(void)
ok
(
!
pSHFileOperationA
(
&
shfo
),
"Deletion was not successful
\n
"
);
hr
=
pSHQueryRecycleBinA
(
buf
,
&
info2
);
ok
(
hr
==
S_OK
,
"SHQueryRecycleBinA failed with error 0x%x
\n
"
,
hr
);
ok
(
info2
.
i64Size
==
info1
.
i64Size
+
written
,
"Expected recycle bin to have 0x%s bytes
\n
"
,
str_from_int64
(
info1
.
i64Size
+
written
));
ok
(
info2
.
i64NumItems
==
info1
.
i64NumItems
+
1
,
"Expected recycle bin to have 0x%s items
\n
"
,
str_from_int64
(
info1
.
i64NumItems
+
1
));
ok
(
info2
.
i64Size
==
info1
.
i64Size
+
written
,
"Expected recycle bin to have 0x%s bytes
\n
"
,
wine_dbgstr_longlong
(
info1
.
i64Size
+
written
));
ok
(
info2
.
i64NumItems
==
info1
.
i64NumItems
+
1
,
"Expected recycle bin to have 0x%s items
\n
"
,
wine_dbgstr_longlong
(
info1
.
i64NumItems
+
1
));
}
...
...
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