Skip to content

Commit

Permalink
Properly fix Windows 10
Browse files Browse the repository at this point in the history
  • Loading branch information
MolotovCherry committed Oct 8, 2023
1 parent 9f55923 commit d2c1a97
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ It has many uses, such as:
- Getting a higher resolution (or higher refresh rate) display when you don't have a physical one on-hand (though note you can only use it in software/VR)
- Other uses? Let me know!

Support: Windows 10 x64 +
Supports: Windows 10 version 2004+ (x64 only)

_For any bug reports, please see the [debugging or reporting crashes](https://github.com/MolotovCherry/virtual-display-rs#debugging-or-reporting-crashes) section to get the panic message for the bug report_

Expand Down
6 changes: 3 additions & 3 deletions wdf-umdf-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ pub fn get_um_dir(dir_type: DirectoryType) -> Result<PathBuf, Error> {

pub fn get_umdf_dir(dir_type: DirectoryType) -> Result<PathBuf, Error> {
Ok(get_windows_kits_dir()?.join(match dir_type {
DirectoryType::Include => PathBuf::from_iter(["Include", "wdf", "umdf", "2.33"]),
DirectoryType::Library => PathBuf::from_iter(["Lib", "wdf", "umdf", "x64", "2.33"]),
DirectoryType::Include => PathBuf::from_iter(["Include", "wdf", "umdf", "2.31"]),
DirectoryType::Library => PathBuf::from_iter(["Lib", "wdf", "umdf", "x64", "2.31"]),
}))
}

Expand Down Expand Up @@ -131,7 +131,7 @@ fn generate() {

let mut iddcx_lib_dir = lib_um_dir.clone();
iddcx_lib_dir.push("iddcx");
iddcx_lib_dir.push("1.9");
iddcx_lib_dir.push("1.4");

println!("cargo:rustc-link-search={}", iddcx_lib_dir.display());

Expand Down
2 changes: 1 addition & 1 deletion wdf-umdf-sys/c/wrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@

#define IDD_STUB

#include <iddcx\1.9\IddCx.h>
#include <iddcx\1.4\IddCx.h>
2 changes: 1 addition & 1 deletion wdf-umdf-sys/src/bindings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ unsafe impl Sync for _WDF_OBJECT_CONTEXT_TYPE_INFO {}

// fails to build without this symbol
#[no_mangle]
pub static IddMinimumVersionRequired: ULONG = 6;
pub static IddMinimumVersionRequired: ULONG = 4;
2 changes: 1 addition & 1 deletion wdf-umdf/src/wdf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ macro_rules! WdfCall {

if is_available {
// SAFETY: Only immutable accesses are done to this
let fn_table = unsafe { ::wdf_umdf_sys::WdfFunctions_02033 };
let fn_table = unsafe { ::wdf_umdf_sys::WdfFunctions_02031 };

// SAFETY: Read-only, initialized by the time we use it, and checked to be in bounds
let fn_handle = unsafe {
Expand Down

0 comments on commit d2c1a97

Please sign in to comment.