From: Eric Biggers Date: Tue, 14 May 2013 05:35:54 +0000 (-0500) Subject: win32_finish_extract_stream(): Fix short name X-Git-Tag: v1.4.0~59 X-Git-Url: https://wimlib.net/git/?p=wimlib;a=commitdiff_plain;h=5d162a88050e113e6630c844325605f04013d834 win32_finish_extract_stream(): Fix short name --- diff --git a/src/win32_apply.c b/src/win32_apply.c index cc466b19..31c37452 100644 --- 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 {