Skip to content

Commit

Permalink
Merge pull request duilib#128 from SoHandsomeYangKunIs/master
Browse files Browse the repository at this point in the history
修改:指针初始化为NULL
  • Loading branch information
wangchyz authored Jan 16, 2017
2 parents 91b40f9 + 1f10324 commit 45416a1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions DuiLib/Control/UIRichEdit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ CTxtWinHost::~CTxtWinHost()

BOOL CTxtWinHost::Init(CRichEditUI *re, const CREATESTRUCT *pcs)
{
IUnknown *pUnk;
IUnknown *pUnk = NULL;
HRESULT hr;

m_re = re;
Expand Down Expand Up @@ -317,7 +317,7 @@ BOOL CTxtWinHost::Init(CRichEditUI *re, const CREATESTRUCT *pcs)
//if(FAILED(CreateTextServices(NULL, this, &pUnk)))
// goto err;

PCreateTextServices TextServicesProc;
PCreateTextServices TextServicesProc = NULL;
HMODULE hmod = LoadLibrary(_T("msftedit.dll"));
if (hmod)
{
Expand Down
2 changes: 1 addition & 1 deletion DuiLib/Core/UIManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ void CPaintManagerUI::SetOpacity(BYTE nOpacity)
m_nOpacity = nOpacity;
if( m_hWndPaint != NULL ) {
typedef BOOL (__stdcall *PFUNCSETLAYEREDWINDOWATTR)(HWND, COLORREF, BYTE, DWORD);
PFUNCSETLAYEREDWINDOWATTR fSetLayeredWindowAttributes;
PFUNCSETLAYEREDWINDOWATTR fSetLayeredWindowAttributes = NULL;

HMODULE hUser32 = ::GetModuleHandle(_T("User32.dll"));
if (hUser32)
Expand Down

0 comments on commit 45416a1

Please sign in to comment.