Skip to content

Commit

Permalink
Lock readme samples to last published version (#2538)
Browse files Browse the repository at this point in the history
  • Loading branch information
kennykerr authored Jun 14, 2023
1 parent bcec6c9 commit 4c88d90
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions crates/tests/readme/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ authors = ["Microsoft"]
edition = "2018"

[dependencies.windows]
path = "../../libs/windows"
version = "0.48"
features = [
"Data_Xml_Dom",
"Win32_Foundation",
Expand All @@ -15,7 +15,7 @@ features = [
]

[dependencies.windows-sys]
path = "../../libs/sys"
version = "0.48"
features = [
"Win32_Foundation",
"Win32_Security",
Expand Down
6 changes: 3 additions & 3 deletions docs/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ fn main() -> Result<()> {
unsafe {
let event = CreateEventW(None, true, false, None)?;
SetEvent(event)?;
WaitForSingleObject(event, 0)?;
CloseHandle(event)?;
SetEvent(event).ok()?;
WaitForSingleObject(event, 0).ok()?;
CloseHandle(event).ok()?;
MessageBoxA(None, s!("Ansi"), s!("Caption"), MB_OK);
MessageBoxW(None, w!("Wide"), w!("Caption"), MB_OK);
Expand Down

0 comments on commit 4c88d90

Please sign in to comment.