Handle missing registry values.
authorIain Patterson <me@iain.cx>
Tue, 25 Jan 2011 22:38:05 +0000 (22:38 +0000)
committerIain Patterson <me@iain.cx>
Tue, 25 Jan 2011 22:50:03 +0000 (22:50 +0000)
commit6ee4bf0c79840175fea1a8035c9ef4ce6749d779
tree3ca75782abe6b55a894cda4d03c64b5ada20a968
parenta33d24db09a7cf87de1766da665fee88e46dd769
Handle missing registry values.

Warn if AppParameters is missing.

Warn if AppDirectory is missing or unset and choose a fallback directory.
First try to find the parent directory of the application.  If that
fails, eg because the application path is just "notepad" or something,
expand %SYSTEMROOT%.  If THAT fails it's time to give up and go home.

Thanks Arve Knudsen.
messages.mc
registry.cpp