Skip to content

Commit

Permalink
Update source/windows/cross_process_lock.c
Browse files Browse the repository at this point in the history
use proper scoping identifier for windows mutex

Co-authored-by: Michael Graeb <[email protected]>
  • Loading branch information
JonathanHenson and graebm authored Nov 6, 2023
1 parent b5020b9 commit 464970b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/windows/cross_process_lock.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ struct aws_cross_process_lock *aws_cross_process_lock_try_acquire(

struct aws_cross_process_lock *instance_lock = NULL;

/* Local prefix, per the docs, specifies session scope rather than global to the user or system. */
struct aws_byte_cursor path_prefix = aws_byte_cursor_from_c_str("Local/aws_crt_cross_process_lock/");
/* "Local\" prefix, per the docs, specifies user session scope (rather than "Global\" to the system). */
struct aws_byte_cursor path_prefix = aws_byte_cursor_from_c_str("Local\\aws_crt_cross_process_lock/");
struct aws_byte_buf nonce_buf;
aws_byte_buf_init_copy_from_cursor(&nonce_buf, allocator, path_prefix);
aws_byte_buf_append_dynamic(&nonce_buf, &instance_nonce);
Expand Down

0 comments on commit 464970b

Please sign in to comment.