Skip to content

Commit

Permalink
Merge branch 'master' into rafael/improve-search-ux
Browse files Browse the repository at this point in the history
  • Loading branch information
riverar authored Jan 7, 2025
2 parents f22cd27 + b35dfd1 commit ac81a00
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ jobs:
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git remote set-url origin https://github.com/${{ github.repository }}
$status = git status --porcelain
if ($status) {
Expand Down
4 changes: 1 addition & 3 deletions crates/samples/windows/direct3d12/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ use windows::{
Win32::UI::WindowsAndMessaging::*,
};

use std::mem::transmute;

trait DXSample {
fn new(command_line: &SampleCommandLine) -> Result<Self>
where
Expand Down Expand Up @@ -151,7 +149,7 @@ extern "system" fn wndproc<S: DXSample>(
match message {
WM_CREATE => {
unsafe {
let create_struct: &CREATESTRUCTA = transmute(lparam);
let create_struct: &CREATESTRUCTA = &*(lparam.0 as *const CREATESTRUCTA);
SetWindowLongPtrA(window, GWLP_USERDATA, create_struct.lpCreateParams as _);
}
LRESULT::default()
Expand Down

0 comments on commit ac81a00

Please sign in to comment.