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
50af5c83
Commit
50af5c83
authored
May 06, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winefile: Explicitly mark qsort() callback funtions cdecl.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
89cbab5d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
winefile.c
programs/winefile/winefile.c
+5
-5
No files found.
programs/winefile/winefile.c
View file @
50af5c83
...
...
@@ -855,7 +855,7 @@ static int compareType(const WIN32_FIND_DATAW* fd1, const WIN32_FIND_DATAW* fd2)
}
static
int
compareName
(
const
void
*
arg1
,
const
void
*
arg2
)
static
int
__cdecl
compareName
(
const
void
*
arg1
,
const
void
*
arg2
)
{
const
WIN32_FIND_DATAW
*
fd1
=
&
(
*
(
const
Entry
*
const
*
)
arg1
)
->
data
;
const
WIN32_FIND_DATAW
*
fd2
=
&
(
*
(
const
Entry
*
const
*
)
arg2
)
->
data
;
...
...
@@ -867,7 +867,7 @@ static int compareName(const void* arg1, const void* arg2)
return
lstrcmpiW
(
fd1
->
cFileName
,
fd2
->
cFileName
);
}
static
int
compareExt
(
const
void
*
arg1
,
const
void
*
arg2
)
static
int
__cdecl
compareExt
(
const
void
*
arg1
,
const
void
*
arg2
)
{
const
WIN32_FIND_DATAW
*
fd1
=
&
(
*
(
const
Entry
*
const
*
)
arg1
)
->
data
;
const
WIN32_FIND_DATAW
*
fd2
=
&
(
*
(
const
Entry
*
const
*
)
arg2
)
->
data
;
...
...
@@ -900,7 +900,7 @@ static int compareExt(const void* arg1, const void* arg2)
return
lstrcmpiW
(
name1
,
name2
);
}
static
int
compareSize
(
const
void
*
arg1
,
const
void
*
arg2
)
static
int
__cdecl
compareSize
(
const
void
*
arg1
,
const
void
*
arg2
)
{
const
WIN32_FIND_DATAW
*
fd1
=
&
(
*
(
const
Entry
*
const
*
)
arg1
)
->
data
;
const
WIN32_FIND_DATAW
*
fd2
=
&
(
*
(
const
Entry
*
const
*
)
arg2
)
->
data
;
...
...
@@ -921,7 +921,7 @@ static int compareSize(const void* arg1, const void* arg2)
return
cmp
<
0
?
-
1
:
cmp
>
0
?
1
:
0
;
}
static
int
compareDate
(
const
void
*
arg1
,
const
void
*
arg2
)
static
int
__cdecl
compareDate
(
const
void
*
arg1
,
const
void
*
arg2
)
{
const
WIN32_FIND_DATAW
*
fd1
=
&
(
*
(
const
Entry
*
const
*
)
arg1
)
->
data
;
const
WIN32_FIND_DATAW
*
fd2
=
&
(
*
(
const
Entry
*
const
*
)
arg2
)
->
data
;
...
...
@@ -934,7 +934,7 @@ static int compareDate(const void* arg1, const void* arg2)
}
static
int
(
*
sortFunctions
[])(
const
void
*
arg1
,
const
void
*
arg2
)
=
{
static
int
(
CDECL
*
sortFunctions
[])(
const
void
*
arg1
,
const
void
*
arg2
)
=
{
compareName
,
/* SORT_NAME */
compareExt
,
/* SORT_EXT */
compareSize
,
/* SORT_SIZE */
...
...
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