• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Virtual machine Management Terminal User Interface


Commit MetaInfo

Revisão247e421f0df8c659c691d877f4030575847554ed (tree)
Hora2023-03-22 22:21:21
AutorKoine Yuusuke(koinec) <koinec@user...>
CommiterKoine Yuusuke(koinec)

Mensagem de Log

Fix missing update end-link data in DeleteChain.

Mudança Sumário

Diff

--- a/src/request.c
+++ b/src/request.c
@@ -196,15 +196,22 @@ void
196196
197197 Request *p_prev;
198198 Request *p_next;
199+ Request *p_top;
199200
200201 p_prev = ((REQUEST_ID_NONE != p_req->i_prev) ? RequestPtr(p_req->i_prev) : NULL);
201202 p_next = ((REQUEST_ID_NONE != p_req->i_next) ? RequestPtr(p_req->i_next) : NULL);
202203
204+ if( NULL == p_next ) {
205+ // p_req is end.
206+ p_top = RequestPtr( gi_top );
207+ p_top->i_prev = p_req->i_prev;
208+ }
209+
203210 if( gi_top == p_req->i_id ) {
204211 p_prev = NULL;
205212 gi_top = p_req->i_next;
206213 }
207-
214+
208215 if( NULL != p_prev )
209216 { p_prev->i_next = p_req->i_next; }
210217 if( NULL != p_next )
@@ -300,7 +307,7 @@ void
300307
301308 pthread_mutex_lock( &gt_request_globmtx );
302309
303- p_req = Request_Get( i_id );
310+ p_req = RequestPtr( i_id );
304311 if( NULL == p_req ) {
305312 goto goto_Request_Free_post;
306313 }