octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #56703] winqueryreg does not return correct DW


From: John Donoghue
Subject: [Octave-bug-tracker] [bug #56703] winqueryreg does not return correct DWORD data
Date: Wed, 31 Jul 2019 12:57:39 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36 Edge/18.17763

URL:
  <https://savannah.gnu.org/bugs/?56703>

                 Summary: winqueryreg does not return correct DWORD data
                 Project: GNU Octave
            Submitted by: lostbard
            Submitted on: Wed 31 Jul 2019 04:57:38 PM UTC
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: In Progress
             Assigned to: lostbard
         Originator Name: JohnD
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 5.1.0
        Operating System: Microsoft Windows

    _______________________________________________________

Details:


Return  DWORD data from the registry, where that value is more than 255:

For example:

winqueryreg ("HKLM", 'SOFTWARE\Microsoft\Windows NT\CurrentVersion',
'InstallDate')

Actual value using regedit:

1554817635


Using the function in octave 5.1:

ans = 99


using a recently updated windows package in Octave 4.2:

ans =   1.5548e+009



Looking at the code, it seems to be getting the value of the first byte of the
read buffer rather than getting as a DWORD. 




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?56703>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]