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
e0b4a352
Commit
e0b4a352
authored
Mar 23, 2017
by
Akihiro Sagawa
Committed by
Alexandre Julliard
Mar 22, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
version/tests: Check the translation resource before testing.
Signed-off-by:
Akihiro Sagawa
<
sagawa.aki@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
52931c75
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
info.c
dlls/version/tests/info.c
+12
-0
No files found.
dlls/version/tests/info.c
View file @
e0b4a352
...
@@ -25,6 +25,7 @@
...
@@ -25,6 +25,7 @@
#include "winbase.h"
#include "winbase.h"
#include "winerror.h"
#include "winerror.h"
#include "winnls.h"
#include "winnls.h"
#include "winuser.h"
#include "winver.h"
#include "winver.h"
#include "verrsrc.h"
#include "verrsrc.h"
#include "wine/test.h"
#include "wine/test.h"
...
@@ -646,6 +647,17 @@ static void test_GetFileVersionInfoEx(void)
...
@@ -646,6 +647,17 @@ static void test_GetFileVersionInfoEx(void)
};
};
char
desc
[
MAX_PATH
];
char
desc
[
MAX_PATH
];
mod
=
GetModuleHandleA
(
"kernel32.dll"
);
assert
(
mod
);
if
(
!
FindResourceExA
(
mod
,
(
LPCSTR
)
RT_VERSION
,
(
LPCSTR
)
VS_VERSION_INFO
,
lang
)
&&
!
FindResourceExA
(
mod
,
(
LPCSTR
)
RT_VERSION
,
(
LPCSTR
)
VS_VERSION_INFO
,
MAKELANGID
(
PRIMARYLANGID
(
lang
),
SUBLANG_NEUTRAL
)))
{
skip
(
"Translation is not available
\n
"
);
return
;
}
size
=
GetFileVersionInfoSizeW
(
kernel32W
,
NULL
);
size
=
GetFileVersionInfoSizeW
(
kernel32W
,
NULL
);
ok
(
size
,
"GetFileVersionInfoSize(kernel32) error %u
\n
"
,
GetLastError
());
ok
(
size
,
"GetFileVersionInfoSize(kernel32) error %u
\n
"
,
GetLastError
());
...
...
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