bombilee / pywinauto

Automatically exported from code.google.com/p/pywinauto
Other
0 stars 0 forks source link

handleprops.py patch #34

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. apparently creating some "Window not Found" errors

What is the expected output? What do you see instead?
ctypes error at line 58:
        buffer_ = ctypes.create_unicode_buffer(length)

What version of the product are you using? On what operating system?
0.4.0 Win7 32bit

Please provide any additional information below.
In handleprops.py I had to change

    if length:
to
    if length>=0:
as length.value returned negative values in some error cases.

Original issue reported on code.google.com by rjsdot...@gmail.com on 3 Apr 2015 at 5:02

GoogleCodeExporter commented 9 years ago
This patch was already applied in 0.4.2:
https://code.google.com/p/pywinauto/source/detail?r=8d5dd946c385975a70d8c7a51737
7ede93ec4a4c

Original comment by vasily.v...@gmail.com on 24 Apr 2015 at 4:41