update for HEAD-2003050101
[reactos.git] / lib / kernel32 / misc / stubs.c
index 249e972..1fc802d 100644 (file)
@@ -284,7 +284,7 @@ STDCALL
 GetACP (VOID)
 {
     SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
-    return 0;
+    return 1252;
 }
 
 #endif
@@ -317,12 +317,26 @@ GetBinaryTypeA (
 WINBOOL
 STDCALL
 GetCPInfo (
-    UINT        a0,
-    LPCPINFO    a1
+    UINT        CodePage,
+    LPCPINFO    CodePageInfo
     )
 {
+    unsigned i;
+
     SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
-    return 0;
+
+    CodePageInfo->MaxCharSize = 1;
+    CodePageInfo->DefaultChar[0] = '?';
+    for (i = 1; i < MAX_DEFAULTCHAR; i++)
+       {
+       CodePageInfo->DefaultChar[i] = '\0';
+       }
+    for (i = 0; i < MAX_LEADBYTES; i++)
+       {
+       CodePageInfo->LeadByte[i] = '\0';
+       }
+
+    return TRUE;
 }
 
 #endif