WinProf & WinReg APIs return -229 on Mac & Linux. Should be another error code.

VERIFIED INVALID

Status

P3
enhancement
VERIFIED INVALID
19 years ago
3 years ago

People

(Reporter: depman1, Assigned: cathleennscp)

Tracking

Trunk
PowerPC
Mac System 8.6

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

19 years ago
builds 2000-02-25.
0. Run on Mac or Linux.
1. Go to http://jimbob/trigger2.html
2. Select any of the WinProfile or WinReg scripts: a_winprofile_writestring, 
a_winprofile_getstring, a_winreg_createkey, ...
3. Trigger. OK.
4. Check logfile.
Result: Install FAILS with -229 error (script error).
Expected: Script aborts with error indicating that it's not supported on these 
platforms. i.e. -202 (access denied), -214 (does not exist), or create a new 
error for "not supported" ...
(Assignee)

Comment 1

19 years ago
Those are windows only APIs.  It is correct that it is a script error (-229) if 
you're trying to use it on Mac & Unix.  It would be nice to have a better error 
msg, but script writers should know better not to use those APIs on Mac & Unix.

Marking this bug as an enchancement.
Severity: minor → enhancement
Target Milestone: M19
On Mac and Linux the GetWin etc APIs return an object. You must check this 
object for null, because if it's null you didn't get it. Attempting to call 
methods of null will cause a script abort as expected.
Status: NEW → RESOLVED
Last Resolved: 19 years ago
Resolution: --- → INVALID
(Reporter)

Comment 3

19 years ago
ok.
Status: RESOLVED → VERIFIED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.