mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-25 23:05:13 +02:00
parent
6baac0afd7
commit
5f3654b362
@ -1194,6 +1194,11 @@ bool Notepad_plus::fileSave(BufferID id)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Expand any environment variables
|
||||||
|
TCHAR fn_bak_expanded[MAX_PATH] = { '\0' };
|
||||||
|
::ExpandEnvironmentStrings(fn_bak.c_str(), fn_bak_expanded, MAX_PATH);
|
||||||
|
fn_bak = fn_bak_expanded;
|
||||||
|
|
||||||
// Make sure the directory exists
|
// Make sure the directory exists
|
||||||
if (!::PathFileExists(fn_bak.c_str()))
|
if (!::PathFileExists(fn_bak.c_str()))
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user