Skip to content

Commit

Permalink
Cancel loading if UAC successes
Browse files Browse the repository at this point in the history
  • Loading branch information
xupefei committed Apr 20, 2014
1 parent 28ae17f commit 7cd6d9e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Notepad2.c
Original file line number Diff line number Diff line change
Expand Up @@ -6955,7 +6955,10 @@ BOOL FileLoad(BOOL bDontSave,BOOL bNew,BOOL bReload,BOOL bNoEncDetect,LPCWSTR lp
shExecInfo.hInstApp = NULL;

if(ShellExecuteEx(&shExecInfo))
{
SendMessage(hwndMain, WM_DESTROY, 0, 0);
return FALSE;
}
}
}

Expand Down

0 comments on commit 7cd6d9e

Please sign in to comment.