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
136ad9a3
Commit
136ad9a3
authored
Mar 17, 2022
by
Eric Pouech
Committed by
Alexandre Julliard
Mar 17, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Enable compilation with long types.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
05e617ae
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
wsprintf.c
dlls/user32/tests/wsprintf.c
+5
-4
No files found.
dlls/user32/tests/wsprintf.c
View file @
136ad9a3
...
@@ -16,6 +16,7 @@
...
@@ -16,6 +16,7 @@
* License along with this library; if not, write to the Free Software
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
*/
#undef WINE_NO_LONG_TYPES
/* temporary for migration */
#include <stdarg.h>
#include <stdarg.h>
...
@@ -79,7 +80,7 @@ static void wsprintfATest(void)
...
@@ -79,7 +80,7 @@ static void wsprintfATest(void)
int
rc
;
int
rc
;
rc
=
wsprintfA
(
buf
,
"%010ld"
,
-
1
);
rc
=
wsprintfA
(
buf
,
"%010ld"
,
-
1
);
ok
(
rc
==
10
,
"wsprintfA length failure: rc=%d error=%d
\n
"
,
rc
,
GetLastError
());
ok
(
rc
==
10
,
"wsprintfA length failure: rc=%d error=%
l
d
\n
"
,
rc
,
GetLastError
());
ok
((
lstrcmpA
(
buf
,
"-000000001"
)
==
0
),
ok
((
lstrcmpA
(
buf
,
"-000000001"
)
==
0
),
"wsprintfA zero padded negative value failure: buf=[%s]
\n
"
,
buf
);
"wsprintfA zero padded negative value failure: buf=[%s]
\n
"
,
buf
);
rc
=
wsprintfA
(
buf
,
"%I64X"
,
(
ULONGLONG
)
0
);
rc
=
wsprintfA
(
buf
,
"%I64X"
,
(
ULONGLONG
)
0
);
...
@@ -157,7 +158,7 @@ static void wsprintfWTest(void)
...
@@ -157,7 +158,7 @@ static void wsprintfWTest(void)
win_skip
(
"wsprintfW is not implemented
\n
"
);
win_skip
(
"wsprintfW is not implemented
\n
"
);
return
;
return
;
}
}
ok
(
rc
==
10
,
"wsPrintfW length failure: rc=%d error=%d
\n
"
,
rc
,
GetLastError
());
ok
(
rc
==
10
,
"wsPrintfW length failure: rc=%d error=%
l
d
\n
"
,
rc
,
GetLastError
());
ok
((
lstrcmpW
(
buf
,
L"-000000001"
)
==
0
),
ok
((
lstrcmpW
(
buf
,
L"-000000001"
)
==
0
),
"wsprintfW zero padded negative value failure
\n
"
);
"wsprintfW zero padded negative value failure
\n
"
);
rc
=
wsprintfW
(
buf
,
L"%I64x"
,
(
ULONGLONG
)
0
);
rc
=
wsprintfW
(
buf
,
L"%I64x"
,
(
ULONGLONG
)
0
);
...
@@ -246,7 +247,7 @@ static void CharUpperTest(void)
...
@@ -246,7 +247,7 @@ static void CharUpperTest(void)
break
;
break
;
}
}
}
}
ok
(
!
failed
,
"CharUpper failed - 16bit input (0x%0
lx) returned 32bit result (0x%0l
x)
\n
"
,
i
,
out
);
ok
(
!
failed
,
"CharUpper failed - 16bit input (0x%0
Ix) returned 32bit result (0x%0I
x)
\n
"
,
i
,
out
);
}
}
static
void
CharLowerTest
(
void
)
static
void
CharLowerTest
(
void
)
...
@@ -263,7 +264,7 @@ static void CharLowerTest(void)
...
@@ -263,7 +264,7 @@ static void CharLowerTest(void)
break
;
break
;
}
}
}
}
ok
(
!
failed
,
"CharLower failed - 16bit input (0x%0
lx) returned 32bit result (0x%0l
x)
\n
"
,
i
,
out
);
ok
(
!
failed
,
"CharLower failed - 16bit input (0x%0
Ix) returned 32bit result (0x%0I
x)
\n
"
,
i
,
out
);
}
}
...
...
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