[PSDK] Sync winerror.h with wine-10.0 (#8244)

- Sync winerror.h to wine-10.0
- Fix a couple hacks that existed because we didn't do this sooner
- Fix an instance where Wine compares a pointer to S_OK to see if it's null
This commit is contained in:
Carl J. Bialorucki 2025-07-11 14:12:09 -06:00 committed by GitHub
parent 12fa72a06d
commit 117cd33b49
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 5242 additions and 1205 deletions

View file

@ -521,8 +521,6 @@ static inline DWORD make_grfdex(script_ctx_t *ctx, DWORD flags)
return ((ctx->version & 0xff) << 28) | flags;
}
#define FACILITY_JSCRIPT 10
#define MAKE_JSERROR(code) MAKE_HRESULT(SEVERITY_ERROR, FACILITY_JSCRIPT, code)
#define JS_E_TO_PRIMITIVE MAKE_JSERROR(IDS_TO_PRIMITIVE)

View file

@ -839,7 +839,7 @@ static void test_CreateStub(IPSFactoryBuffer *ppsf)
vtbl = &create_stub_test_fail_vtbl;
pstub = create_stub(ppsf, &IID_if1, obj, E_NOINTERFACE);
ok(pstub == S_OK, "create_stub failed: %u\n", GetLastError());
ok(pstub == NULL, "create_stub failed: %u\n", GetLastError());
}

View file

@ -23,7 +23,6 @@
/*****************************************************************************
* Error code handling
*/
#define FACILITY_DIRECTMUSIC 0x878
#define DMUS_ERRBASE 0x1000
#ifndef MAKE_HRESULT

File diff suppressed because it is too large Load diff