-
Notifications
You must be signed in to change notification settings - Fork 613
Conversation
bool WriteRegistryInt (LPCWSTR pFolder, LPCWSTR pEntry, int val); | ||
|
||
// Registry key strings | ||
#define PREF_BRACKETS_BASE L"Software\\Brackets\\" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should use the GROUP_NAME and APP_NAME constants defined in config.h instead of hard-coding "Brackets"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, and PREF_BRACKETS_BASE should be given a more generic name like PREF_APPSHELL_BASE, too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
Code review changes pushed. |
This is for: adobe/brackets#1594 |
} | ||
|
||
// App name | ||
wcscat(pRet, L"\\"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the GROUP_NAME macro, if defined, already has a backslash at the end of it (see config.h for edge code). In that case, you'll either need to omit the backslash when copying from pGroup, or omit it here before appending pApp.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed. I made it so any string passed to this function works with or without a trailing backslash.
Initial review complete. |
@gruehle Changes pushed. |
Looks good. Merging. |
windows: restore window position
windows: restore window position
Glenn submitted a fix for this on Mac, so now we can take this fix for Windows.