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
This commit is contained in:
Pierre Schweitzer 2016-10-18 20:32:50 +00:00
parent 3a5149de3e
commit a8e3f3a292
2 changed files with 8 additions and 8 deletions

View file

@ -3855,7 +3855,7 @@ RegQueryMultipleValuesA(HKEY hKey,
LONG ErrorCode; LONG ErrorCode;
if (maxBytes >= (1024*1024)) if (maxBytes >= (1024*1024))
return ERROR_TRANSFER_TOO_LONG; return ERROR_MORE_DATA;
*ldwTotsize = 0; *ldwTotsize = 0;
@ -3919,7 +3919,7 @@ RegQueryMultipleValuesW(HKEY hKey,
LONG ErrorCode; LONG ErrorCode;
if (maxBytes >= (1024*1024)) if (maxBytes >= (1024*1024))
return ERROR_TRANSFER_TOO_LONG; return ERROR_MORE_DATA;
*ldwTotsize = 0; *ldwTotsize = 0;

View file

@ -272,13 +272,13 @@
#define ERROR_EXE_CANNOT_MODIFY_SIGNED_BINARY 217 #define ERROR_EXE_CANNOT_MODIFY_SIGNED_BINARY 217
#define ERROR_EXE_CANNOT_MODIFY_STRONG_SIGNED_BINARY 218 #define ERROR_EXE_CANNOT_MODIFY_STRONG_SIGNED_BINARY 218
#define ERROR_INVALID_EXITROUTINE_RING 219 #define ERROR_INVALID_EXITROUTINE_RING 219
#define ERROR_GETBUF_FAILED 220 #define ERROR_FILE_CHECKED_OUT 220
#define ERROR_FLUSHBUF_FAILED 221 #define ERROR_CHECKOUT_REQUIRED 221
#define ERROR_TRANSFER_TOO_LONG 222 #define ERROR_BAD_FILE_TYPE 222
#define ERROR_FORCENOSWAP_FAILED 223 #define ERROR_FILE_TOO_LARGE 223
#define ERROR_SMG_NO_TARGET_WINDOW 224 #define ERROR_FORMS_AUTH_REQUIRED 224
#define ERROR_NO_CHILDREN 228 #define ERROR_NO_CHILDREN 228
#define ERROR_INVALID_SCREEN_GROUP 229 #define ERROR_PIPE_LOCAL 229
#define ERROR_BAD_PIPE 230 #define ERROR_BAD_PIPE 230
#define ERROR_PIPE_BUSY 231 #define ERROR_PIPE_BUSY 231
#define ERROR_NO_DATA 232 #define ERROR_NO_DATA 232