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
8207bdfe
Commit
8207bdfe
authored
Mar 13, 2020
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winedump: Add dumping of sortkey NLS files.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
602f2082
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
0 deletions
+29
-0
dump.c
tools/winedump/dump.c
+28
-0
nls.c
tools/winedump/nls.c
+0
-0
winedump.h
tools/winedump/winedump.h
+1
-0
No files found.
tools/winedump/dump.c
View file @
8207bdfe
...
...
@@ -207,6 +207,34 @@ const char* get_guid_str(const GUID* guid)
return
str
;
}
const
char
*
get_unicode_str
(
const
WCHAR
*
str
,
int
len
)
{
char
*
buffer
;
int
i
=
0
;
if
(
len
==
-
1
)
len
=
strlenW
(
str
);
buffer
=
dump_want_n
(
len
*
6
+
3
);
buffer
[
i
++
]
=
'"'
;
while
(
len
--
>
0
&&
*
str
)
{
WCHAR
c
=
*
str
++
;
switch
(
c
)
{
case
'\n'
:
strcpy
(
buffer
+
i
,
"
\\
n"
);
i
+=
2
;
break
;
case
'\r'
:
strcpy
(
buffer
+
i
,
"
\\
r"
);
i
+=
2
;
break
;
case
'\t'
:
strcpy
(
buffer
+
i
,
"
\\
t"
);
i
+=
2
;
break
;
case
'"'
:
strcpy
(
buffer
+
i
,
"
\\\"
"
);
i
+=
2
;
break
;
case
'\\'
:
strcpy
(
buffer
+
i
,
"
\\\\
"
);
i
+=
2
;
break
;
default:
if
(
c
>=
' '
&&
c
<=
126
)
buffer
[
i
++
]
=
c
;
else
i
+=
sprintf
(
buffer
+
i
,
"
\\
u%04x"
,
c
);
}
}
buffer
[
i
++
]
=
'"'
;
buffer
[
i
]
=
0
;
return
buffer
;
}
const
void
*
PRD
(
unsigned
long
prd
,
unsigned
long
len
)
{
return
(
prd
+
len
>
dump_total_len
)
?
NULL
:
(
const
char
*
)
dump_base
+
prd
;
...
...
tools/winedump/nls.c
View file @
8207bdfe
This diff is collapsed.
Click to expand it.
tools/winedump/winedump.h
View file @
8207bdfe
...
...
@@ -229,6 +229,7 @@ const char* get_time_str( unsigned long );
unsigned
int
strlenW
(
const
unsigned
short
*
str
);
void
dump_unicode_str
(
const
unsigned
short
*
str
,
int
len
);
const
char
*
get_guid_str
(
const
GUID
*
guid
);
const
char
*
get_unicode_str
(
const
WCHAR
*
str
,
int
len
);
const
char
*
get_symbol_str
(
const
char
*
symname
);
void
print_fake_dll
(
void
);
void
dump_file_header
(
const
IMAGE_FILE_HEADER
*
);
...
...
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