Artifact e15d42c911b399d343b254aaec7fe37f252f562f:
- File
src/win32/errorrep.d
-
2015-05-05 06:49:05
- part of checkin
[9b639cf2d6]
on branch trunk
- Working version for update to 2.067.
The problem was __gshared. Replacing it with TLS fixed the issue. Remaining problem is that "hack.d"'s CloseHandle hack is not working anymore.
(user: kinaba) [annotate]
-
2015-05-05 06:49:05
- part of checkin
[9b639cf2d6]
on branch trunk
- Working version for update to 2.067.
0000: 2f 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a /*************** 0010: 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a **************** 0020: 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a **************** 0030: 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a **************** 0040: 2a 2a 2a 2a 2a 2a 2a 2a 5c 0d 0a 2a 20 20 20 20 ********\..* 0050: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 0060: 20 20 20 20 20 20 20 20 20 20 20 65 72 72 6f 72 error 0070: 72 65 70 2e 64 20 20 20 20 20 20 20 20 20 20 20 rep.d 0080: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 0090: 20 20 20 2a 0d 0a 2a 20 20 20 20 20 20 20 20 20 *..* 00a0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 00b0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 00c0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 00d0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2a 0d *. 00e0: 0a 2a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .* 00f0: 20 20 20 20 20 20 20 20 20 57 69 6e 64 6f 77 73 Windows 0100: 20 41 50 49 20 68 65 61 64 65 72 20 6d 6f 64 75 API header modu 0110: 6c 65 20 20 20 20 20 20 20 20 20 20 20 20 20 20 le 0120: 20 20 20 20 20 20 20 20 20 2a 0d 0a 2a 20 20 20 *..* 0130: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 0140: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 0150: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 0160: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 0170: 20 20 20 20 2a 0d 0a 2a 20 20 20 20 20 20 20 20 *..* 0180: 20 20 20 20 20 20 20 20 20 54 72 61 6e 73 6c 61 Transla 0190: 74 65 64 20 66 72 6f 6d 20 4d 69 6e 47 57 20 57 ted from MinGW W 01a0: 69 6e 64 6f 77 73 20 68 65 61 64 65 72 73 20 20 indows headers 01b0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2a * 01c0: 0d 0a 2a 20 20 20 20 20 20 20 20 20 20 20 20 20 ..* 01d0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 62 79 by 01e0: 20 53 74 65 77 61 72 74 20 47 6f 72 64 6f 6e 20 Stewart Gordon 01f0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 0200: 20 20 20 20 20 20 20 20 20 20 2a 0d 0a 2a 20 20 *..* 0210: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 0220: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 0230: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 0240: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 0250: 20 20 20 20 20 2a 0d 0a 2a 20 20 20 20 20 20 20 *..* 0260: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 0270: 50 6c 61 63 65 64 20 69 6e 74 6f 20 70 75 62 6c Placed into publ 0280: 69 63 20 64 6f 6d 61 69 6e 20 20 20 20 20 20 20 ic domain 0290: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 02a0: 2a 0d 0a 5c 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a *..\************ 02b0: 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a **************** 02c0: 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a **************** 02d0: 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a **************** 02e0: 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2f 0d 0a 6d 6f ***********/..mo 02f0: 64 75 6c 65 20 77 69 6e 33 32 2e 65 72 72 6f 72 dule win32.error 0300: 72 65 70 3b 0d 0a 0d 0a 70 72 69 76 61 74 65 20 rep;....private 0310: 69 6d 70 6f 72 74 20 77 69 6e 33 32 2e 77 33 32 import win32.w32 0320: 61 70 69 2c 20 77 69 6e 33 32 2e 77 69 6e 64 65 api, win32.winde 0330: 66 3b 0d 0a 0d 0a 73 74 61 74 69 63 20 61 73 73 f;....static ass 0340: 65 72 74 20 28 5f 57 49 4e 33 32 5f 57 49 4e 4e ert (_WIN32_WINN 0350: 54 20 3e 3d 20 30 78 35 30 31 2c 0d 0a 09 22 77 T >= 0x501,..."w 0360: 69 6e 33 32 2e 65 72 72 6f 72 72 65 70 20 69 73 in32.errorrep is 0370: 20 61 76 61 69 6c 61 62 6c 65 20 6f 6e 6c 79 20 available only 0380: 69 66 20 76 65 72 73 69 6f 6e 20 57 69 6e 64 6f if version Windo 0390: 77 73 58 50 2c 20 57 69 6e 64 6f 77 73 32 30 30 wsXP, Windows200 03a0: 33 20 22 0d 0a 09 22 6f 72 20 57 69 6e 64 6f 77 3 "..."or Window 03b0: 73 56 69 73 74 61 20 69 73 20 73 65 74 22 29 3b sVista is set"); 03c0: 0d 0a 0d 0a 65 6e 75 6d 20 45 46 61 75 6c 74 52 ....enum EFaultR 03d0: 65 70 52 65 74 56 61 6c 20 7b 0d 0a 09 66 72 72 epRetVal {...frr 03e0: 76 4f 6b 2c 0d 0a 09 66 72 72 76 4f 6b 4d 61 6e vOk,...frrvOkMan 03f0: 69 66 65 73 74 2c 0d 0a 09 66 72 72 76 4f 6b 51 ifest,...frrvOkQ 0400: 75 65 75 65 64 2c 0d 0a 09 66 72 72 76 45 72 72 ueued,...frrvErr 0410: 2c 0d 0a 09 66 72 72 76 45 72 72 4e 6f 44 57 2c ,...frrvErrNoDW, 0420: 0d 0a 09 66 72 72 76 45 72 72 54 69 6d 65 6f 75 ...frrvErrTimeou 0430: 74 2c 0d 0a 09 66 72 72 76 4c 61 75 6e 63 68 44 t,...frrvLaunchD 0440: 65 62 75 67 67 65 72 2c 0d 0a 09 66 72 72 76 4f ebugger,...frrvO 0450: 6b 48 65 61 64 6c 65 73 73 20 2f 2f 20 3d 20 37 kHeadless // = 7 0460: 0d 0a 7d 0d 0a 0d 0a 65 78 74 65 72 6e 20 28 57 ..}....extern (W 0470: 69 6e 64 6f 77 73 29 20 7b 0d 0a 09 42 4f 4f 4c indows) {...BOOL 0480: 20 41 64 64 45 52 45 78 63 6c 75 64 65 64 41 70 AddERExcludedAp 0490: 70 6c 69 63 61 74 69 6f 6e 41 28 4c 50 43 53 54 plicationA(LPCST 04a0: 52 29 3b 0d 0a 09 42 4f 4f 4c 20 41 64 64 45 52 R);...BOOL AddER 04b0: 45 78 63 6c 75 64 65 64 41 70 70 6c 69 63 61 74 ExcludedApplicat 04c0: 69 6f 6e 57 28 4c 50 43 57 53 54 52 29 3b 0d 0a ionW(LPCWSTR);.. 04d0: 09 45 46 61 75 6c 74 52 65 70 52 65 74 56 61 6c .EFaultRepRetVal 04e0: 20 52 65 70 6f 72 74 46 61 75 6c 74 28 4c 50 45 ReportFault(LPE 04f0: 58 43 45 50 54 49 4f 4e 5f 50 4f 49 4e 54 45 52 XCEPTION_POINTER 0500: 53 2c 20 44 57 4f 52 44 29 3b 0d 0a 7d 0d 0a 0d S, DWORD);..}... 0510: 0a 76 65 72 73 69 6f 6e 20 28 55 6e 69 63 6f 64 .version (Unicod 0520: 65 29 20 7b 0d 0a 09 61 6c 69 61 73 20 41 64 64 e) {...alias Add 0530: 45 52 45 78 63 6c 75 64 65 64 41 70 70 6c 69 63 ERExcludedApplic 0540: 61 74 69 6f 6e 57 20 41 64 64 45 52 45 78 63 6c ationW AddERExcl 0550: 75 64 65 64 41 70 70 6c 69 63 61 74 69 6f 6e 3b udedApplication; 0560: 0d 0a 7d 20 65 6c 73 65 20 7b 0d 0a 09 61 6c 69 ..} else {...ali 0570: 61 73 20 41 64 64 45 52 45 78 63 6c 75 64 65 64 as AddERExcluded 0580: 41 70 70 6c 69 63 61 74 69 6f 6e 41 20 41 64 64 ApplicationA Add 0590: 45 52 45 78 63 6c 75 64 65 64 41 70 70 6c 69 63 ERExcludedApplic 05a0: 61 74 69 6f 6e 3b 0d 0a 7d 0d 0a ation;..}..