X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=src%2Fwin32_apply.c;h=31c37452580846bbf82328036049aa754721660d;hb=1e167170cdc048c6a93db6d994d9da161f8553d9;hp=cc466b19826f8630f9368f9ff71d16c175ae2087;hpb=cbd76a9a7f349b42457c290e2970c9f4ecd873c1;p=wimlib 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 {