Use snprintf instead of wsprintf, and use getenv("APPDATA") instead of
authorMagnus Hagander <magnus@hagander.net>
Tue, 23 Oct 2007 17:58:01 +0000 (17:58 +0000)
committerMagnus Hagander <magnus@hagander.net>
Tue, 23 Oct 2007 17:58:01 +0000 (17:58 +0000)
commit68111ef05c8cfe07525a035b7a37a10059b32e82
tree0e481789ad5a92f384e52e713f44afff73a02364
parent3cc457057748b222846f7a69fe663faa4c978770
Use snprintf instead of wsprintf, and use getenv("APPDATA") instead of
SHGetFolderPath.

This removes the direct dependency on shell32.dll and user32.dll, which
eats a lot of "desktop heap" for each backend that's started. The
desktop heap is a very limited resource, causing backends to no
longer start once it's been exhausted.

We still have indirect depdendencies on user32.dll through third party
libraries, but those can't easily be removed.

Dave Page
src/backend/port/win32/signal.c
src/port/kill.c
src/port/path.c