[PSDK]
authorPierre Schweitzer <pierre@reactos.org>
Tue, 18 Oct 2016 20:32:50 +0000 (20:32 +0000)
committerPierre Schweitzer <pierre@reactos.org>
Tue, 18 Oct 2016 20:32:50 +0000 (20:32 +0000)
Replace error codes that don't even exist in MS headers (but they are referenced on MSDN?!)
Replace their usage in code

svn path=/trunk/; revision=72991

reactos/dll/win32/advapi32/reg/reg.c
reactos/sdk/include/psdk/winerror.h

index b5b7deb..86e14b8 100644 (file)
@@ -3855,7 +3855,7 @@ RegQueryMultipleValuesA(HKEY hKey,
     LONG ErrorCode;
 
     if (maxBytes >= (1024*1024))
-        return ERROR_TRANSFER_TOO_LONG;
+        return ERROR_MORE_DATA;
 
     *ldwTotsize = 0;
 
@@ -3919,7 +3919,7 @@ RegQueryMultipleValuesW(HKEY hKey,
     LONG ErrorCode;
 
     if (maxBytes >= (1024*1024))
-        return ERROR_TRANSFER_TOO_LONG;
+        return ERROR_MORE_DATA;
 
     *ldwTotsize = 0;
 
index a54c61c..8fae348 100644 (file)
 #define ERROR_EXE_CANNOT_MODIFY_SIGNED_BINARY              217
 #define ERROR_EXE_CANNOT_MODIFY_STRONG_SIGNED_BINARY       218
 #define ERROR_INVALID_EXITROUTINE_RING                     219
-#define ERROR_GETBUF_FAILED                                220
-#define ERROR_FLUSHBUF_FAILED                              221
-#define ERROR_TRANSFER_TOO_LONG                            222
-#define ERROR_FORCENOSWAP_FAILED                           223
-#define ERROR_SMG_NO_TARGET_WINDOW                         224
+#define ERROR_FILE_CHECKED_OUT                             220
+#define ERROR_CHECKOUT_REQUIRED                            221
+#define ERROR_BAD_FILE_TYPE                                222
+#define ERROR_FILE_TOO_LARGE                               223
+#define ERROR_FORMS_AUTH_REQUIRED                          224
 #define ERROR_NO_CHILDREN                                  228
-#define ERROR_INVALID_SCREEN_GROUP                         229
+#define ERROR_PIPE_LOCAL                                   229
 #define ERROR_BAD_PIPE                                     230
 #define ERROR_PIPE_BUSY                                    231
 #define ERROR_NO_DATA                                      232