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