diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2012-11-24 17:32:10 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2012-11-24 17:32:10 +0000 |
commit | 09e11d659eae5880041e0cc051d42dfbcc498695 (patch) | |
tree | 38b2493ce0facec0f8ac887642d1cc1593074650 /plugins/NotesAndReminders/src | |
parent | 19bab0c2b3a389ce67a1e36d0714a595bf7f4137 (diff) |
try to fix a crash
git-svn-id: http://svn.miranda-ng.org/main/trunk@2470 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/NotesAndReminders/src')
-rw-r--r-- | plugins/NotesAndReminders/src/main.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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;
}
|