From 09e11d659eae5880041e0cc051d42dfbcc498695 Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Sat, 24 Nov 2012 17:32:10 +0000 Subject: try to fix a crash git-svn-id: http://svn.miranda-ng.org/main/trunk@2470 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/NotesAndReminders/src/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins') diff --git a/plugins/NotesAndReminders/src/main.cpp b/plugins/NotesAndReminders/src/main.cpp index 505aa21fbb..1d2134301a 100644 --- a/plugins/NotesAndReminders/src/main.cpp +++ b/plugins/NotesAndReminders/src/main.cpp @@ -40,9 +40,9 @@ void CloseReminderList(); INT_PTR PluginMenuCommandAddNew(WPARAM w,LPARAM l) { - STICKYNOTE* PSN; - PSN = NewNote(0,0,0,0,NULL,NULL,TRUE,TRUE,0); - SetFocus(PSN->REHwnd); + STICKYNOTE *PSN = NewNote(0,0,0,0,NULL,NULL,TRUE,TRUE,0); + if(PSN) + SetFocus(PSN->REHwnd); return 0; } -- cgit v1.2.3