[client,common] fix file clipboard locking
This commit is contained in:
parent
aac0c0d01d
commit
91056dc96c
@ -2289,8 +2289,13 @@ BOOL cliprdr_file_context_clear(CliprdrFileContext* file)
|
||||
|
||||
WLog_Print(file->log, WLOG_DEBUG, "clear file clipboard...");
|
||||
|
||||
HashTable_Lock(file->local_streams);
|
||||
HashTable_Foreach(file->local_streams, local_stream_discard, file);
|
||||
HashTable_Unlock(file->local_streams);
|
||||
|
||||
HashTable_Lock(file->remote_streams);
|
||||
HashTable_Foreach(file->remote_streams, remote_stream_discard, file);
|
||||
HashTable_Unlock(file->remote_streams);
|
||||
|
||||
memset(file->server_data_hash, 0, sizeof(file->server_data_hash));
|
||||
memset(file->client_data_hash, 0, sizeof(file->client_data_hash));
|
||||
|
Loading…
Reference in New Issue
Block a user