• R/O
  • HTTP
  • SSH
  • HTTPS

nvdajp: 提交

NVDA with Japanese branch


Commit MetaInfo

修订版a845561a963c0346938c32976c541a005e17fb6e (tree)
时间2018-09-21 18:50:45
作者Takuya Nishimoto <nishimotz@gmai...>
CommiterTakuya Nishimoto

Log Message

nvdajp/nvdajp#106 [skip ci]

更改概述

差异

--- a/source/nvda.pyw
+++ b/source/nvda.pyw
@@ -74,7 +74,10 @@ globalVars.startTime=time.time()
7474 # Check OS version requirements
7575 import winVersion
7676 if not winVersion.isSupportedOS():
77- winUser.MessageBox(0, ctypes.FormatError(winUser.ERROR_OLD_WIN_VERSION).decode('mbcs'), None, winUser.MB_ICONERROR)
77+ msg = ctypes.FormatError(winUser.ERROR_OLD_WIN_VERSION)
78+ if hasattr(msg, 'decode'):
79+ msg = msg.decode('mbcs')
80+ winUser.MessageBox(0, msg, None, winUser.MB_ICONERROR)
7881 sys.exit(1)
7982
8083 def decodeMbcs(string):
Show on old repository browser