summaryrefslogtreecommitdiff
path: root/plugins/NotesAndReminders
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/NotesAndReminders')
-rw-r--r--plugins/NotesAndReminders/src/main.cpp6
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;
}