Fixed regression in file browser.
authorIain Patterson <me@iain.cx>
Sat, 18 Jan 2014 13:43:06 +0000 (13:43 +0000)
committerIain Patterson <me@iain.cx>
Sat, 18 Jan 2014 13:43:06 +0000 (13:43 +0000)
commit914e07a1be72f036dbff709e5a29dc134e4042b9
treef31d7c5c9b3a867ff707875ab6194d8a55b9c7b9
parent2994e17c24d8a3d32937a92733ba1ee0f26dc33d
Fixed regression in file browser.

The GUI file browser was the only place in the code we were using new
and delete[] instead of HeapAlloc() and HeapFree().
The previous commit overlooked that fact and introduced a compiler error
by assuming that lpstrFile was a buffer of a known size instead of being
allocated with new.
Fix the regression and use HeapAlloc()/HeapFree() for consistency.
gui.cpp