fix wrong allocation size
fix bug introduced in d287d557106677ef0da052106d6b0cc5a001589a
This commit is contained in:
parent
be30792e93
commit
5a292d744e
@ -1462,7 +1462,7 @@ int main(int argc,char * argv[])
|
|||||||
if (k >= TmpArgSize)
|
if (k >= TmpArgSize)
|
||||||
{
|
{
|
||||||
TmpArgSize = (TmpArgSize == 0) ? 16 : 2 * TmpArgSize;
|
TmpArgSize = (TmpArgSize == 0) ? 16 : 2 * TmpArgSize;
|
||||||
TmpArg = (WCHAR *)realloc(TmpArg, TmpArgSize);
|
TmpArg = (WCHAR *)realloc(TmpArg, sizeof(WCHAR) * TmpArgSize);
|
||||||
if (TmpArg == NULL)
|
if (TmpArg == NULL)
|
||||||
{
|
{
|
||||||
MessageBoxA(NULL, "Error initializing program (realloc)", NULL, MB_OK | MB_ICONERROR);
|
MessageBoxA(NULL, "Error initializing program (realloc)", NULL, MB_OK | MB_ICONERROR);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user