Skip to content

Expand environment variables in backup path#2525

Closed
dail8859 wants to merge 1 commit intonotepad-plus-plus:masterfrom
dail8859:env-var-backup
Closed

Expand environment variables in backup path#2525
dail8859 wants to merge 1 commit intonotepad-plus-plus:masterfrom
dail8859:env-var-backup

Conversation

@dail8859
Copy link
Copy Markdown
Contributor

@dail8859 dail8859 commented Nov 3, 2016

Fixes #2520


// Expand any environment variables
TCHAR fn_bak_expanded[MAX_PATH] = { '\0' };
::ExpandEnvironmentStrings(fn_bak.c_str(), fn_bak_expanded, MAX_PATH);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be wise to check the return value, see ExpandEnvironmentStrings help and it's example.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wasn't too worried about checking the return value since most other places in the code tend to ignore it as well. Plus if something does fail it most likely will cause CopyFile() to fail.

@donho donho added the accepted label Nov 8, 2016
@donho donho added this to the 7.x (master) milestone Nov 8, 2016
@dail8859 dail8859 closed this in 5f3654b Nov 8, 2016
@dail8859 dail8859 deleted the env-var-backup branch November 8, 2016 13:08
SinghRajenM added a commit to SinghRajenM/notepad-plus-plus that referenced this pull request Nov 11, 2016
* Update german.xml to version 7.0 - 14.10.16

including last updates following english.xml from 14.10.2016

Closes notepad-plus-plus#2423

* Update translations

* Update farsi.xml to 7.1

* Update slovenian.xml to v7.1

* Notepad++ 7.1 release

* Updated hindi.xml

Closes notepad-plus-plus#2375

* Update config.model.xml

* config.xml is generated by notepad++

No more config.model.xml. config.xml is generated by notepad++ directly.

* Add SmartHighLight node for config.xml generation

* Fixed disable smart highlihgt inconsistent behaviour

This bug can be reproduce by turning off smart highlight then restart
Notepad++ : some smart highlight options are still enabled.

Fixes notepad-plus-plus#2442, closes notepad-plus-plus#2465

* Add .profile, .bash_profile, and .bashrc extensions.

* Ensure backup directory exists

Failed backups result in a user error message and asks to save the file anyways. Closes notepad-plus-plus#2346, Closes notepad-plus-plus#2441

* Add smart highlighting extension to anothe view option

Add new option to enable smat highlighting extension to anothe view,
while both views are visible side by side.

* Fix a regression of double click on several zones of status bar.

* Fix a tab settings regression

Tab settings per language broken due to the entries are doubled by error
during the preferences dialog reorganization.

* Fix uninstaller silent mode issue

Remove also unecessary files

* Fix Installer for 64-bit fails with argument "/D"

* Change styler to make makefile more readable

Closes notepad-plus-plus#2482

* MinGW GCC update

- changes necessary to get back a buildable version with mingw, last adapted with notepad-plus-plus#1229
- fixed some gcc compiler errors and warnings, see https://ci.appveyor.com/project/chcg/notepad-plus-plus/build/1.0.3 to https://ci.appveyor.com/project/chcg/notepad-plus-plus/build/1.0.13
- remaining task is the wincontrol "ReadDirectoryChanges", which uses ATL, propably not available with mingw
Closes notepad-plus-plus#2478

* Japanese translation update

* update translations to v7.1
* correct indent
Closes notepad-plus-plus#2436

* Update Ukrainian translation

Closes notepad-plus-plus#2414

* Update catalan.xml

Update to v7.0

Closes notepad-plus-plus#2412

* Fix Encoding radio button issue in New Document

Sync UTF-8 checkbox with UTF-8 radio button

Closes notepad-plus-plus#2377

* cmake config update

- added usable cmake config file by transferring files structure from visual studio project file
- contains also basic support for mingw make file creation
- see https://ci.appveyor.com/project/chcg/notepad-plus-plus/build/1.0.38 for successful with own appveyor config

Closes notepad-plus-plus#2477

* Update translations

* Notepad++ release 7.2

* Expand environment variables in backup path

Fixes notepad-plus-plus#2520, Fixes notepad-plus-plus#2525

* Improve Javascript readability
SinghRajenM added a commit to SinghRajenM/notepad-plus-plus that referenced this pull request Nov 11, 2016
* Update german.xml to version 7.0 - 14.10.16

including last updates following english.xml from 14.10.2016

Closes notepad-plus-plus#2423

* Update translations

* Update farsi.xml to 7.1

* Update slovenian.xml to v7.1

* Notepad++ 7.1 release

* Updated hindi.xml

Closes notepad-plus-plus#2375

* Update config.model.xml

* config.xml is generated by notepad++

No more config.model.xml. config.xml is generated by notepad++ directly.

* Add SmartHighLight node for config.xml generation

* Fixed disable smart highlihgt inconsistent behaviour

This bug can be reproduce by turning off smart highlight then restart
Notepad++ : some smart highlight options are still enabled.

Fixes notepad-plus-plus#2442, closes notepad-plus-plus#2465

* Add .profile, .bash_profile, and .bashrc extensions.

* Ensure backup directory exists

Failed backups result in a user error message and asks to save the file anyways. Closes notepad-plus-plus#2346, Closes notepad-plus-plus#2441

* Add smart highlighting extension to anothe view option

Add new option to enable smat highlighting extension to anothe view,
while both views are visible side by side.

* Fix a regression of double click on several zones of status bar.

* Fix a tab settings regression

Tab settings per language broken due to the entries are doubled by error
during the preferences dialog reorganization.

* Fix uninstaller silent mode issue

Remove also unecessary files

* Fix Installer for 64-bit fails with argument "/D"

* Change styler to make makefile more readable

Closes notepad-plus-plus#2482

* MinGW GCC update

- changes necessary to get back a buildable version with mingw, last adapted with notepad-plus-plus#1229
- fixed some gcc compiler errors and warnings, see https://ci.appveyor.com/project/chcg/notepad-plus-plus/build/1.0.3 to https://ci.appveyor.com/project/chcg/notepad-plus-plus/build/1.0.13
- remaining task is the wincontrol "ReadDirectoryChanges", which uses ATL, propably not available with mingw
Closes notepad-plus-plus#2478

* Japanese translation update

* update translations to v7.1
* correct indent
Closes notepad-plus-plus#2436

* Update Ukrainian translation

Closes notepad-plus-plus#2414

* Update catalan.xml

Update to v7.0

Closes notepad-plus-plus#2412

* Fix Encoding radio button issue in New Document

Sync UTF-8 checkbox with UTF-8 radio button

Closes notepad-plus-plus#2377

* cmake config update

- added usable cmake config file by transferring files structure from visual studio project file
- contains also basic support for mingw make file creation
- see https://ci.appveyor.com/project/chcg/notepad-plus-plus/build/1.0.38 for successful with own appveyor config

Closes notepad-plus-plus#2477

* Update translations

* Notepad++ release 7.2

* Expand environment variables in backup path

Fixes notepad-plus-plus#2520, Fixes notepad-plus-plus#2525

* Improved Run Macro dialog UI.
1. Radio button and edit box were overlapped
2. Edit box and comboxed were not vertically aligned.
SinghRajenM added a commit to SinghRajenM/notepad-plus-plus that referenced this pull request Nov 11, 2016
* Update german.xml to version 7.0 - 14.10.16

including last updates following english.xml from 14.10.2016

Closes notepad-plus-plus#2423

* Update translations

* Update farsi.xml to 7.1

* Update slovenian.xml to v7.1

* Notepad++ 7.1 release

* Updated hindi.xml

Closes notepad-plus-plus#2375

* Update config.model.xml

* config.xml is generated by notepad++

No more config.model.xml. config.xml is generated by notepad++ directly.

* Add SmartHighLight node for config.xml generation

* Fixed disable smart highlihgt inconsistent behaviour

This bug can be reproduce by turning off smart highlight then restart
Notepad++ : some smart highlight options are still enabled.

Fixes notepad-plus-plus#2442, closes notepad-plus-plus#2465

* Add .profile, .bash_profile, and .bashrc extensions.

* Ensure backup directory exists

Failed backups result in a user error message and asks to save the file anyways. Closes notepad-plus-plus#2346, Closes notepad-plus-plus#2441

* Add smart highlighting extension to anothe view option

Add new option to enable smat highlighting extension to anothe view,
while both views are visible side by side.

* Fix a regression of double click on several zones of status bar.

* Fix a tab settings regression

Tab settings per language broken due to the entries are doubled by error
during the preferences dialog reorganization.

* Fix uninstaller silent mode issue

Remove also unecessary files

* Fix Installer for 64-bit fails with argument "/D"

* Change styler to make makefile more readable

Closes notepad-plus-plus#2482

* MinGW GCC update

- changes necessary to get back a buildable version with mingw, last adapted with notepad-plus-plus#1229
- fixed some gcc compiler errors and warnings, see https://ci.appveyor.com/project/chcg/notepad-plus-plus/build/1.0.3 to https://ci.appveyor.com/project/chcg/notepad-plus-plus/build/1.0.13
- remaining task is the wincontrol "ReadDirectoryChanges", which uses ATL, propably not available with mingw
Closes notepad-plus-plus#2478

* Japanese translation update

* update translations to v7.1
* correct indent
Closes notepad-plus-plus#2436

* Update Ukrainian translation

Closes notepad-plus-plus#2414

* Update catalan.xml

Update to v7.0

Closes notepad-plus-plus#2412

* Fix Encoding radio button issue in New Document

Sync UTF-8 checkbox with UTF-8 radio button

Closes notepad-plus-plus#2377

* cmake config update

- added usable cmake config file by transferring files structure from visual studio project file
- contains also basic support for mingw make file creation
- see https://ci.appveyor.com/project/chcg/notepad-plus-plus/build/1.0.38 for successful with own appveyor config

Closes notepad-plus-plus#2477

* Update translations

* Notepad++ release 7.2

* Expand environment variables in backup path

Fixes notepad-plus-plus#2520, Fixes notepad-plus-plus#2525

* Update readme.txt

* Improve Javascript string readability

Fixes notepad-plus-plus#1543, closes notepad-plus-plus#2550

* Small tune on Run Macro dialog UI.

1. Radio button and edit box were overlapped
2. Edit box and comboxed were not vertically aligned.

Closes notepad-plus-plus#2549

* Remove 32bit shell dll from 64bit installer

Closes notepad-plus-plus#2408
PalashBansal pushed a commit to PalashBansal/notepad-plus-plus that referenced this pull request Dec 3, 2016
anil-shrestha pushed a commit to anil-shrestha/notepad-plus-plus that referenced this pull request Dec 7, 2016
iczelia pushed a commit to iczelia/notepad-plus-plus that referenced this pull request Jan 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants