use fallback value in case PhLocalSystemName = NULL

git-svn-id: svn://svn.code.sf.net/p/processhacker/code@4178 21ef857c-d57f-4fe0-8362-d861dc6d29cd
This commit is contained in:
wj32
2011-04-27 06:17:20 +00:00
parent 45c8f4ebe4
commit 4a63f44f44
+4
View File
@@ -92,6 +92,10 @@ INT WINAPI WinMain(
PhLocalSystemName = PhGetSidFullName(&PhSeLocalSystemSid, TRUE, NULL);
// There has been a report of the above call failing.
if (!PhLocalSystemName)
PhLocalSystemName = PhCreateString(L"NT AUTHORITY\\SYSTEM");
PhApplicationFileName = PhGetApplicationFileName();
PhApplicationDirectory = PhGetApplicationDirectory();