From: Pierre Schweitzer Date: Tue, 18 Oct 2016 20:32:50 +0000 (+0000) Subject: [PSDK] X-Git-Tag: ReactOS-0.4.3~64 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=a8e3f3a2929cd7151176813345a34d97d7e6946d;ds=sidebyside [PSDK] 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 --- diff --git a/reactos/dll/win32/advapi32/reg/reg.c b/reactos/dll/win32/advapi32/reg/reg.c index b5b7debda2b..86e14b8e50d 100644 --- a/reactos/dll/win32/advapi32/reg/reg.c +++ b/reactos/dll/win32/advapi32/reg/reg.c @@ -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; diff --git a/reactos/sdk/include/psdk/winerror.h b/reactos/sdk/include/psdk/winerror.h index a54c61c7f86..8fae3485ad0 100644 --- a/reactos/sdk/include/psdk/winerror.h +++ b/reactos/sdk/include/psdk/winerror.h @@ -272,13 +272,13 @@ #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