~stomato463/+junk/nvdajp

« back to all changes in this revision

Viewing changes to source/winKernel.py

  • Committer: Masataka Shinke
  • Date: 2011-10-25 12:35:26 UTC
  • mfrom: (4185 jpmain)
  • mto: This revision was merged to the branch mainline in revision 4211.
  • Revision ID: mshinke@users.sourceforge.jp-20111025123526-ze527a2rl3z0g2ky
lp:~nishimotz/nvdajp/main : 4185 をマージ

Show diffs side-by-side

added added

removed removed

Lines of Context:
90
90
        return kernel32.OpenProcess(*args)
91
91
 
92
92
def virtualAllocEx(*args):
93
 
        return kernel32.VirtualAllocEx(*args)
 
93
        res = kernel32.VirtualAllocEx(*args)
 
94
        if res == 0:
 
95
                raise WinError()
 
96
        return res
94
97
 
95
98
def virtualFreeEx(*args):
96
99
        return kernel32.VirtualFreeEx(*args)