forked from openlp/openlp
Untidy the code I tided, so it functions correctly!
This commit is contained in:
parent
e256d1a331
commit
596c928881
@ -350,15 +350,15 @@ BOOL GetPPTViewerPath(char *pptViewerPath, int stringSize)
|
||||
LRESULT lResult;
|
||||
|
||||
DEBUG("GetPPTViewerPath: start\n");
|
||||
if ((RegOpenKeyEx(HKEY_CLASSES_ROOT,
|
||||
if (RegOpenKeyEx(HKEY_CLASSES_ROOT,
|
||||
"PowerPointViewer.Show.12\\shell\\Show\\command", 0, KEY_READ, &hKey)
|
||||
!= ERROR_SUCCESS)
|
||||
&& (RegOpenKeyEx(HKEY_CLASSES_ROOT,
|
||||
if(RegOpenKeyEx(HKEY_CLASSES_ROOT,
|
||||
"Applications\\PPTVIEW.EXE\\shell\\open\\command", 0, KEY_READ, &hKey)
|
||||
!= ERROR_SUCCESS)
|
||||
&& (RegOpenKeyEx(HKEY_CLASSES_ROOT,
|
||||
if (RegOpenKeyEx(HKEY_CLASSES_ROOT,
|
||||
"Applications\\PPTVIEW.EXE\\shell\\Show\\command", 0, KEY_READ, &hKey)
|
||||
!= ERROR_SUCCESS))
|
||||
!= ERROR_SUCCESS)
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user