vane / pywinauto

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

patch for restoring winNT compatibility #32

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. winNT isn't supported any more since version 0.2.5~ish because GetMenuInfo 
isn't supported there but the symbol is unconditionally read in the 
win32function.py file

What is the expected output? What do you see instead?

I expected that "python setup.py build" was finishing normally, but instead, it 
crashed on 
AttributeError: function 'GetMenuInfo' not found

What version of the product are you using? On what operating system?
pywinauto 0.2.5+ (tried many up to 0.4.2 included) on WindowsNT sp6

Please provide any additional information below.
The attached patch silently discard this attribute error and let pywinauto run 
with just this symbol muted

Original issue reported on code.google.com by zeog...@gmail.com on 9 Feb 2015 at 12:56

Attachments: