mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 08:15:41 +00:00
[BROWSEUI]
- Correctly handle progress dialog message strings CORE-9252 svn path=/trunk/; revision=67019
This commit is contained in:
parent
7f9a543084
commit
d78406b3f5
1 changed files with 4 additions and 5 deletions
|
@ -50,8 +50,8 @@ CProgressDialog::CProgressDialog()
|
||||||
this->cancelMsg = (LPWSTR) HeapAlloc(GetProcessHeap(), 0, BUFFER_SIZE);
|
this->cancelMsg = (LPWSTR) HeapAlloc(GetProcessHeap(), 0, BUFFER_SIZE);
|
||||||
this->title = (LPWSTR) HeapAlloc(GetProcessHeap(), 0, BUFFER_SIZE);
|
this->title = (LPWSTR) HeapAlloc(GetProcessHeap(), 0, BUFFER_SIZE);
|
||||||
|
|
||||||
this->lines[0][0] = this->lines[1][0] = this->lines[2][0] = 0;
|
this->lines[0][0] = this->lines[1][0] = this->lines[2][0] = UNICODE_NULL;
|
||||||
this->cancelMsg[0] = this->title[0];
|
this->cancelMsg[0] = this->title[0] = UNICODE_NULL;
|
||||||
|
|
||||||
this->clockHand = -1;
|
this->clockHand = -1;
|
||||||
this->progressClock[29].ullMark = 0ull;
|
this->progressClock[29].ullMark = 0ull;
|
||||||
|
@ -76,12 +76,11 @@ static void set_buffer(LPWSTR *buffer, LPCWSTR string)
|
||||||
{
|
{
|
||||||
if (!string)
|
if (!string)
|
||||||
{
|
{
|
||||||
buffer[0] = 0;
|
(*buffer)[0] = UNICODE_NULL;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
ULONG len = max((wcslen(string) + 1)*sizeof(WCHAR), BUFFER_SIZE);
|
StringCbCopyW(*buffer, BUFFER_SIZE, string);
|
||||||
StringCchCopyW(*buffer, len, string);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
struct create_params
|
struct create_params
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue