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
27003f83
Commit
27003f83
authored
Jan 29, 2024
by
Eric Pouech
Committed by
Alexandre Julliard
Feb 01, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbghelp/tests: Use Unicode encoding for generated PDB filenames.
Signed-off-by:
Eric Pouech
<
epouech@codeweavers.com
>
parent
f8ee8790
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
path.c
dlls/dbghelp/tests/path.c
+11
-11
No files found.
dlls/dbghelp/tests/path.c
View file @
27003f83
...
...
@@ -503,7 +503,7 @@ static void pdb_write(HANDLE hfile, struct pdb_file* pdb)
SetEndOfFile
(
hfile
);
}
static
BOOL
create_test_pdb_ds
(
const
char
*
pdb_name
,
const
GUID
*
guid
,
DWORD
age
)
static
BOOL
create_test_pdb_ds
(
const
WCHAR
*
pdb_name
,
const
GUID
*
guid
,
DWORD
age
)
{
struct
PDB_DS_ROOT
root
=
{
...
...
@@ -660,8 +660,8 @@ static BOOL create_test_pdb_ds(const char* pdb_name, const GUID* guid, DWORD age
stream
=
pdb_add_stream
(
&
pdb
,
&
pddt
.
sections_stream
,
&
ro_section
,
sizeof
(
ro_section
));
hfile
=
CreateFile
A
(
pdb_name
,
GENERIC_WRITE
,
FILE_SHARE_READ
,
NULL
,
CREATE_ALWAYS
,
0
,
0
);
ok
(
hfile
!=
INVALID_HANDLE_VALUE
,
"failed to create %s err %lu
\n
"
,
pdb_name
,
GetLastError
());
hfile
=
CreateFile
W
(
pdb_name
,
GENERIC_WRITE
,
FILE_SHARE_READ
,
NULL
,
CREATE_ALWAYS
,
0
,
0
);
ok
(
hfile
!=
INVALID_HANDLE_VALUE
,
"failed to create %
l
s err %lu
\n
"
,
pdb_name
,
GetLastError
());
if
(
hfile
==
INVALID_HANDLE_VALUE
)
return
FALSE
;
pdb_write
(
hfile
,
&
pdb
);
...
...
@@ -803,8 +803,8 @@ static void test_srvgetindexes_pe(void)
static
void
test_srvgetindexes_pdb
(
void
)
{
unsigned
int
i
;
char
filename
[
128
];
SYMSRV_INDEX_INFO
ssii
;
WCHAR
filename
[
128
];
SYMSRV_INDEX_INFO
W
ssii
;
BOOL
ret
;
static
struct
...
...
@@ -822,12 +822,12 @@ static void test_srvgetindexes_pdb(void)
winetest_push_context
(
"pdb#%02u"
,
i
);
/* create dll */
s
nprintf
(
filename
,
ARRAYSIZE
(
filename
),
"winetest%02u.pdb"
,
i
);
s
wprintf
(
filename
,
ARRAY_SIZE
(
filename
),
L
"winetest%02u.pdb"
,
i
);
create_test_pdb_ds
(
filename
,
indexes
[
i
].
guid
,
240
+
i
);
memset
(
&
ssii
,
0x45
,
sizeof
(
ssii
));
ssii
.
sizeofstruct
=
sizeof
(
ssii
);
ret
=
SymSrvGetFileIndexInfo
(
filename
,
&
ssii
,
0
);
ret
=
SymSrvGetFileIndexInfo
W
(
filename
,
&
ssii
,
0
);
ok
(
ret
,
"SymSrvGetFileIndexInfo failed: %lu
\n
"
,
GetLastError
());
ok
(
ssii
.
age
==
240
+
i
,
"Mismatch in age: %lx
\n
"
,
ssii
.
age
);
...
...
@@ -839,11 +839,11 @@ static void test_srvgetindexes_pdb(void)
ok
(
ssii
.
size
==
0
,
"Mismatch in size: %lx
\n
"
,
ssii
.
size
);
ok
(
!
ssii
.
stripped
,
"Mismatch in stripped: %x
\n
"
,
ssii
.
stripped
);
ok
(
ssii
.
timestamp
==
0
,
"Mismatch in timestamp: %lx
\n
"
,
ssii
.
timestamp
);
ok
(
!
strcmp
(
ssii
.
file
,
filename
),
"Mismatch in file: %
s
\n
"
,
ssii
.
file
);
ok
(
!
ssii
.
pdbfile
[
0
],
"Mismatch in pdbfile: %s
\n
"
,
ssii
.
pdbfile
);
ok
(
!
ssii
.
dbgfile
[
0
],
"Mismatch in dbgfile: %s
\n
"
,
ssii
.
dbgfile
);
ok
(
!
wcscmp
(
ssii
.
file
,
filename
),
"Mismatch in file: %l
s
\n
"
,
ssii
.
file
);
ok
(
!
ssii
.
pdbfile
[
0
],
"Mismatch in pdbfile: %
l
s
\n
"
,
ssii
.
pdbfile
);
ok
(
!
ssii
.
dbgfile
[
0
],
"Mismatch in dbgfile: %
l
s
\n
"
,
ssii
.
dbgfile
);
DeleteFile
A
(
filename
);
DeleteFile
W
(
filename
);
winetest_pop_context
();
}
}
...
...
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