Commit 653da452 authored by Sven Strickroth's avatar Sven Strickroth

Handle out of memory situation

Signed-off-by: Sven Strickroth's avatarSven Strickroth <[email protected]>
parent dd7282df
Pipeline #26107010 passed with stage
// TortoiseGit - a Windows shell extension for easy version control
// Copyright (C) 2003-2008, 2014 - TortoiseSVN
// Copyright (C) 2008-2017 - TortoiseGit
// Copyright (C) 2008-2018 - TortoiseGit
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
......@@ -748,6 +748,9 @@ STDMETHODIMP CShellExt::AddPages(LPFNADDPROPSHEETPAGE lpfnAddPage, LPARAM lParam
HPROPSHEETPAGE hPage;
CGitPropertyPage *sheetpage = new (std::nothrow) CGitPropertyPage(files_);
if (!sheetpage)
return E_OUTOFMEMORY;
psp.dwSize = sizeof (psp);
psp.dwFlags = PSP_USEREFPARENT | PSP_USETITLE | PSP_USEICONID | PSP_USECALLBACK;
psp.hInstance = g_hResInst;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment