OSDN Git Service
(root)
/
dokopop
/
dokopop.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
初期化処理の改善:amodi.exeの起動を正しく検知できず、amodiが使用できなくなる場合の対応
[dokopop/dokopop.git]
/
DCHookTest
/
Util.cpp
diff --git
a/DCHookTest/Util.cpp
b/DCHookTest/Util.cpp
index
15318ec
..
d2bb816
100644
(file)
--- a/
DCHookTest/Util.cpp
+++ b/
DCHookTest/Util.cpp
@@
-424,8
+424,14
@@
bool _WinExec( const char *cmd, int show, int waittime, const char *dir)
return false;
bool ret = true;
if ( waittime ){
return false;
bool ret = true;
if ( waittime ){
+// DWORD startTime = GetTickCount();
int r = WaitForInputIdle( pi.hProcess, waittime );
ret = r==0;
int r = WaitForInputIdle( pi.hProcess, waittime );
ret = r==0;
+ if (!ret){
+ dbw("CreateProcess: %d, 0x%X", r, GetLastError());
+ } else {
+// dbw("CreateProcess: %d", GetTickCount() - startTime);
+ }
}
CloseHandle( pi.hProcess );
return ret;
}
CloseHandle( pi.hProcess );
return ret;
@@
-491,11
+497,11
@@
bool LaunchAMODI()
#else
SW_HIDE;
#endif
#else
SW_HIDE;
#endif
- if (!_WinExec( AMODI_EXE_PATH, show,
5
00))
+ if (!_WinExec( AMODI_EXE_PATH, show,
3
00))
return false;
HWND hwnd = NULL;
return false;
HWND hwnd = NULL;
- for (int i=0;i<
3
0;i++){
+ for (int i=0;i<
1
0;i++){
hwnd = FindAMODI();
if (hwnd)
break;
hwnd = FindAMODI();
if (hwnd)
break;