Fix a typo with PAGEMODE_UNKNOWN.
authorLei Zhang <thestig@chromium.org>
Sat, 24 May 2014 07:37:54 +0000 (00:37 -0700)
committerLei Zhang <thestig@chromium.org>
Sat, 24 May 2014 07:37:54 +0000 (00:37 -0700)
R=jam@chromium.org

Review URL: https://codereview.chromium.org/297993002

fpdfsdk/include/fpdf_ext.h
fpdfsdk/src/fpdf_ext.cpp

index 5efe0e6..96e3c85 100644 (file)
@@ -71,7 +71,7 @@ DLLEXPORT FPDF_BOOL STDCALL FSDK_SetUnSpObjProcessHandler(UNSUPPORT_INFO* unsp_i
 //flags for page mode. 
 
 //Unknown value
-#define PAGEMODE_UNKONOWN              -1
+#define PAGEMODE_UNKNOWN               -1
 
 //Neither document outline nor thumbnail images visible
 #define PAGEMODE_USENONE               0
index 2d9e5ae..916cb20 100644 (file)
@@ -219,10 +219,10 @@ void CheckUnSupportError(CPDF_Document * pDoc, FX_DWORD err_code)
 
 DLLEXPORT int FPDFDoc_GetPageMode(FPDF_DOCUMENT document)
 {
-       if (!document) return PAGEMODE_UNKONOWN;
+       if (!document) return PAGEMODE_UNKNOWN;
        CPDF_Dictionary *pRoot = ((CPDF_Document*)document)->GetRoot();
        if (!pRoot)
-               return PAGEMODE_UNKONOWN;
+               return PAGEMODE_UNKNOWN;
        CPDF_Object* pName = pRoot->GetElement("PageMode");
        if (!pName)
                return PAGEMODE_USENONE;
@@ -241,5 +241,5 @@ DLLEXPORT int FPDFDoc_GetPageMode(FPDF_DOCUMENT document)
        else if (strPageMode.EqualNoCase(FX_BSTR("UseAttachments")))
                return PAGEMODE_USEATTACHMENTS;
 
-       return PAGEMODE_UNKONOWN;
+       return PAGEMODE_UNKNOWN;
 }