git://wimlib.net
/
wimlib
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cbd76a9
)
win32_finish_extract_stream(): Fix short name
author
Eric Biggers
<ebiggers3@gmail.com>
Tue, 14 May 2013 05:35:54 +0000
(
00:35
-0500)
committer
Eric Biggers
<ebiggers3@gmail.com>
Tue, 14 May 2013 05:35:54 +0000
(
00:35
-0500)
src/win32_apply.c
patch
|
blob
|
history
diff --git
a/src/win32_apply.c
b/src/win32_apply.c
index cc466b19826f8630f9368f9ff71d16c175ae2087..31c37452580846bbf82328036049aa754721660d 100644
(file)
--- a/
src/win32_apply.c
+++ b/
src/win32_apply.c
@@
-668,7
+668,6
@@
win32_finish_extract_stream(HANDLE h, const struct wim_dentry *dentry,
{
int ret = 0;
const struct wim_inode *inode = dentry->d_inode;
- const wchar_t *short_name;
if (stream_name_utf16 == NULL) {
/* Unnamed stream. */
@@
-724,7
+723,7
@@
win32_finish_extract_stream(HANDLE h, const struct wim_dentry *dentry,
}
if (dentry_has_short_name(dentry))
- SetFileShortNameW(h, short_name);
+ SetFileShortNameW(h,
dentry->
short_name);
else if (running_on_windows_7_or_later())
SetFileShortNameW(h, L"");
} else {